Can anyone please explain why C# interfaces are not allowed to contain operators?
Thanks.
dkackman
C# operators have to be static. Interfaces, by definition, apply to instances. There is no mechanism to require a type to implement static methods.
来源:https://stackoverflow.com/questions/6603940/c-sharp-interface-cannot-contain-operators