Original Post
Hello. I was just wondering about properties in C#. I thought I'd try to move my game engine project from C++ to C# and use the Tao Framework to gain access to SDL, OpenGL, and OpenAL (which the C++ project uses). I've started constructing my classes and just love properties and interfaces in C#! My question is, do I always need to create a complimentary variable for each property I build into a class? Sometimes I just don't have to, and the value I'm searching for within the get{} statement can be calculated on the fly, but most of the time (whenever a set{} statement is involved, for instance) my classes have private members that the properties access. I know this is pretty normal, but conflicting identifiers are really annoying me. What's the common practice or naming convenction? I like to name variables with capital words, such as FramesPerRow or DynamicWeebulFluxCapacitor. I like the same convention for properties too though. It seems that normally member variables are started with a lowercase word followed by uppercase words, such as framesPerRow or dynamicWeebulFluxCapacitor. How should I go about doing this? I know it's a simple little question, but I thought I'd ask. :-) Thanks!