public class Person
{
private string _name;
public void DoSomethingWithName()
{
Console.WriteLine(_name); // Will this work? Or do I need to
use Name, to ensure lazy loading?
}
public string Name
{
get { return _name; }
set { _name = value; }
}
}
Will lazy loading work on an object if inside of a class method, I use
the field name, instead of the property name?
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"nhusers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/nhusers?hl=en
-~----------~----~----~----~------~----~------~--~---