KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
In C# .NET, why can't I access constants in a class with the 'this' keyword? Example: public class MyTest { public const string HI = "Hello"; public void TestMethod() { string filler; filler = this.HI; //Won't work. filler = HI //Works. } }
Tags (comma-separated)
Save Edits
Cancel