示例#1
0
        public ReadOnlyDetailPrototype(DetailPrototype obj)
        {
            if (obj.IsTrulyNull())
            {
                throw new ArgumentNullException(nameof(obj));
            }

            _obj = obj;
        }
示例#2
0
 public static ReadOnlyDetailPrototype AsReadOnly(this DetailPrototype self) => self.IsTrulyNull() ? null : new ReadOnlyDetailPrototype(self);