示例#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));
 }
示例#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));
 }