SetReadOnly() защищенный Метод

protected SetReadOnly ( ) : void
Результат void
Пример #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);
        }