Arquivo da categoria ‘C#’


class Program
{
static void Main(string[] args)
{
Type type = typeof(MyReflectionClass);
MethodInfo method = type.GetMethod("MyMethod");
MyReflectionClass c = new MyReflectionClass();
string result = (string)method.Invoke(c, null);
Console.WriteLine(result);
}
}

public class MyReflectionClass
{
public string MyMethod()
{
return DateTime.Now.ToString();
}
}

via.net – Calling a function from a string in C# – Stack Overflow.

A Tutorial on Nested Classes in C# – CodeProject®.

String Format for DateTime [C#]

Publicado: 21/03/2012 em ASP.NET, C#

String Format for DateTime [C#].

Create a simple file transfer Web service with .NET – Web Development – Techguide.

ASP.NET Page Life Cycle Overview

Publicado: 13/03/2012 em ASP.NET, C#

ASP.NET Page Life Cycle Overview.

ASP.NET 2.0 MasterPages e FindControl () – Log Rick Strahl na Web.

Applied Reflection: Dynamically accessing properties of a class at runtime | TechRepublic.