Sorry for not clear. Let's use the example below. If you and I are on
the
same team, and we're talking about the code below, I'd love to have common
terminology for differentiating between the field myClassString and the
field myMethodString below. The first is accessible throughout the class.
The second has a scope limited to the method. So ... is there a "type" of
field so you know exactly what scope of field I'm talking about without
looking at the code? THANKS again. - Mark
class myClass {
private string myClassString "scope limited to class";
myClass(){}
myMethod()
{
string myMethodString = "scope limited to method";
}
}
in
message news:
[email protected]...
Mark,
Can you elaborate on what you mean? What do you mean by a "method
field"? Or do you mean just a method? If you are speaking about
reflection, then methods have MethodInfo associated with them, and fields
have FieldInfo associated with them.
Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
- (e-mail address removed)
Mark said:
Is there a field 'type' that differentiates between a method field and
a
class field, or are "method fields" and "class fields" as good as I'm
going
to get? Thanks in advance.
Mark