Exemplo n.º 1
0
 public AcItemWrapper([NotNull]IAcWrapperLoader loader, [NotNull]AcPlaceholderNew initialValue) {
     if (loader == null) throw new ArgumentNullException(nameof(loader));
     if (initialValue == null) throw new ArgumentNullException(nameof(initialValue));
     _loader = loader;
     _value = initialValue;
     IsLoaded = _value.GetType().IsSubclassOf(typeof(AcObjectNew));
 }
Exemplo n.º 2
0
 public AcItemWrapper([NotNull] IAcWrapperLoader loader, [NotNull] AcPlaceholderNew initialValue)
 {
     if (loader == null)
     {
         throw new ArgumentNullException(nameof(loader));
     }
     if (initialValue == null)
     {
         throw new ArgumentNullException(nameof(initialValue));
     }
     _loader  = loader;
     _value   = initialValue;
     IsLoaded = _value.GetType().IsSubclassOf(typeof(AcObjectNew));
 }