Init() protected méthode

protected Init ( ) : void
Résultat void
Exemple #1
0
 ConfigurationElement CreateElement(Type t)
 {
     ConfigurationElement elem = (ConfigurationElement) Activator.CreateInstance (t);
     elem.Init ();
     if (IsReadOnly ())
         elem.SetReadOnly ();
     return elem;
 }
        ConfigurationElement CreateElement(Type t)
        {
            ConfigurationElement elem = (ConfigurationElement)Activator.CreateInstance(t);

            elem.Init();
            elem.Configuration = Configuration;
            if (IsReadOnly())
            {
                elem.SetReadOnly();
            }
            return(elem);
        }