Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
What's the difference?
Message
De
08/12/2009 07:48:08
 
 
À
Tous
Information générale
Forum:
ASP.NET
Catégorie:
Code, syntaxe and commandes
Titre:
What's the difference?
Divers
Thread ID:
01438025
Message ID:
01438025
Vues:
129
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
Répondre
Fil
Voir

Click here to load this message in the networking platform