Ok this is an easy one.
How do I create a custom assignment operator for my own classes in C#? The types to be assigned to my class are DataReader classes (for SQL and Access) so my class may act as a wrapper for them.
Something like
How do I create a custom assignment operator for my own classes in C#? The types to be assigned to my class are DataReader classes (for SQL and Access) so my class may act as a wrapper for them.
Something like
Code:
class Myclass
{
operator = (accessdatareader adr)
{
mydatareader = adr;
}
}