Ejemplo n.º 1
0
        public ReadOnlyDetailPrototype(DetailPrototype obj)
        {
            if (obj.IsTrulyNull())
            {
                throw new ArgumentNullException(nameof(obj));
            }

            _obj = obj;
        }
Ejemplo n.º 2
0
 public static ReadOnlyDetailPrototype AsReadOnly(this DetailPrototype self) => self.IsTrulyNull() ? null : new ReadOnlyDetailPrototype(self);