Download What is the equivalent of Java's final in C#? - Stack Overflow book pdf free download link or read online here in PDF. Read online What is the equivalent of Java's final in C#? - Stack Overflow book pdf free download link book now. All books are in clear copy here, and all files are secure so don't worry about it. This site is like a library, you could find million book here by using search box in the header.
It differs though - final requires exactly one assignment even in constructor or initializer. There is no C# equivalent for a final local variable that I know of. If you are wondering why would anyone need it: You can declare a variable prior to an if-else, switch-case or so. By declaring it final, you enforce that it is assigned at most once.
Read : What is the equivalent of Java's final in C#? - Stack Overflow pdf book online Select one of servers for direct link: |
---|