io.IoList.clone C# (CSharp) Method

clone() public method

public clone ( IoState state ) : IoObject
state IoState
return IoObject
        public override IoObject clone(IoState state)
        {
            IoObject proto = state.protoWithInitFunc(name);
            IoList result = new IoList();
            uniqueIdCounter++;
            result.uniqueId = uniqueIdCounter;
            result.list = new IoObjectArrayList();
            result.state = state;
            result.createProtos();
            result.createSlots();
            result.protos.Add(proto);
            return result;
        }

Usage Example

Esempio n. 1
0
 public static new IoList createObject(IoState state)
 {
     IoList m = new IoList();
     return m.clone(state) as IoList;
 }
All Usage Examples Of io.IoList::clone