public virtual EmptyDerivedFromNonEmptyBase ToEmptyDerivedFromNonEmptyBase() { EmptyDerivedFromNonEmptyBase that = this as EmptyDerivedFromNonEmptyBase; if (that != null && this.GetType().IsEquivalentTo(typeof(EmptyDerivedFromNonEmptyBase))) { return(that); } return(EmptyDerivedFromNonEmptyBase.CreateWithIdentity( oneField: Optional.For(this.OneField), identity: this.Identity)); }
public new EmptyDerivedFromNonEmptyBase ToImmutable() { return this.immutable = this.immutable; }
internal Builder(EmptyDerivedFromNonEmptyBase immutable) : base(immutable) { this.immutable = immutable; }
public void EmptyDerivedFromNonEmptyBaseReinstantiatesCorrectType() { EmptyDerivedFromNonEmptyBase value = EmptyDerivedFromNonEmptyBase.Create(); EmptyDerivedFromNonEmptyBase updatedValue = value.WithOneField(true); EmptyDerivedFromNonEmptyBase updatedValue2 = value.With(true); }
public new EmptyDerivedFromNonEmptyBase ToImmutable() { return(this.immutable = this.immutable); }