Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
What's the difference?
Message
From
08/12/2009 07:48:08
 
 
To
All
General information
Forum:
ASP.NET
Category:
Coding, syntax and commands
Title:
What's the difference?
Miscellaneous
Thread ID:
01438025
Message ID:
01438025
Views:
128
Hi,

is there any difference between these two code snippets:
       private static PropertyInfo NameProperty = RegisterProperty(new PropertyInfo("Name", "Project name"));

        public string Name

        {

            get { return GetProperty(NameProperty); }

            set { SetProperty(NameProperty, value); }

        }
and
    private static PropertyInfo NameProperty = RegisterProperty(p=>p.Name, "Project name");

    public string Name

    {

      get { return GetProperty(NameProperty); }

      set { SetProperty(NameProperty, value); }

    }
Frank.

Frank Cazabon
Samaan Systems Ltd.
www.samaansystems.com
Reply
Map
View

Click here to load this message in the networking platform