コード例 #1
0
 public DotNetPrototype(ReferenceType state)
 {
     State = state;
 }
コード例 #2
0
        /// <summary>
        /// Intentionaly not using ICloneable here
        /// </summary>
        /// <returns></returns>
        public override Prototype Clone()
        {
            var newState = new ReferenceType(State.Number, State.Str);

            return(new ConcretePrototype(newState) as Prototype);
        }
コード例 #3
0
 public ConcretePrototype(ReferenceType state) : base(state)
 {
 }
コード例 #4
0
 public Prototype(ReferenceType state)
 {
     State = state;
 }