Sunday, May 25, 2008
Difference between Managed & Unmanaged Code
This might be old topic. But anybody who is looking for what managed and unmanaged code mean can find it here.
Tuesday, May 13, 2008
Get value of a class property using reflection in .net
This site contains a simple example how to get property value of a class using reflection.
Friday, May 9, 2008
Declaring Attribute Class In .Net
Adding a attribute class in .net is very simple.It's just a class declaration which inherits System.Attribute and is marked with AttributeUsage attribute.
[AttributeUsage(AttributeTargets.All)]
class MyAttributeClass : System.Attribute
{
//variables
//methods
}
once you declare this class you can use this as attribute in another class like following one
Class MySampleClass
{
[MyAttributeClass]
public void Dosomething()
{
}
}
More to come later...........
[AttributeUsage(AttributeTargets.All)]
class MyAttributeClass : System.Attribute
{
//variables
//methods
}
once you declare this class you can use this as attribute in another class like following one
Class MySampleClass
{
[MyAttributeClass]
public void Dosomething()
{
}
}
More to come later...........
Subscribe to:
Posts (Atom)