This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class Base | |
{ | |
public virtual void Method() | |
{ | |
Console.WriteLine("Base (can be overridden.)"); | |
} | |
public void CantOverride() | |
{ | |
Console.WriteLine("Can't be overridden (but can be newed)."); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Range<T> | |
{ | |
public readonly T Start; | |
public readonly T End; | |
public Range(T start, T end) | |
{ | |
Start = start; | |
End = end; | |
} |