I have a class which is using generics. This class do some operation which need serialization. So the class which will be given to myClass must hold the attribute [Serializable()]. Is it possible to request a class which attributes it holds? In best case at design time.
[Serializable()]
public class clsSchnappschuss<T>
{
//Some operations which need serialization
}
So if someone uses clsSchnappschuss he must give the DataType (T) and i want to request that T implements [Serializable()]. Is this possible?
regards