First post:
eusebiu wrote: Wouldn't be nice if C# had a optional keyword for the methods/properties in an interface? interface IMyInterface { optional void OptionalMethod(); void NotOptionalMethod(); } public ...
Latest post:
JamesCurran wrote: Wait a minute, I forgot that OptionalMethod, if implemented could throw an exception, which we don't want to lose. IMyInterface obj = GetAnIMyInterfaceObject(); obj.NotOptionalMethod(); ...