Suppose I want to inherit from System.Data.SqlClient.SqlTransaction which is sealed. Supose I want to just put a wrapper around SqlTransaction and always use MyTransaction instead of SqlTransaction. Is there a way I could potentially cast MyTransaction to SqlTransaction using an Implicit/Widening operator?
Suppose I want to inherit from System.Data.SqlClient.SqlTransaction which is sealed . Supose I want
Share
If you really want implicit conversion (although I would not recommend it, as it is a horrible idea and a horrible design, IMO), you can do something like this: