C#.NET - Working with Attributes and Generics



Defining an Attribute

class Att : Attribute
{
	public Type A { get { return null; } set { } }
}

Implementing Attribute using Generics

class A
{
	[Att(A = typeof(T))]
	A() { }
}

Share |

 Cant find the page you are looking for?
 Help us to improve by adding the content that you are looking for.
 Leave a feedback
 We look forward to hear your comments and feedback.