public ReadOnlyDetailPrototype(DetailPrototype obj) { if (obj.IsTrulyNull()) { throw new ArgumentNullException(nameof(obj)); } _obj = obj; }
public static ReadOnlyDetailPrototype AsReadOnly(this DetailPrototype self) => self.IsTrulyNull() ? null : new ReadOnlyDetailPrototype(self);