예제 #1
0
 /// <summary>
 /// Copies the content of a SerializableInputIdentifier to an instance of InputIdentifier
 /// </summary>
 /// <param name="serializableInputIdentifier"></param>
 public InputIdentifier(SerializableInputIdentifier serializableInputIdentifier)
 {
     if (serializableInputIdentifier != null)
     {
         _id = serializableInputIdentifier.id;
         _type = serializableInputIdentifier.type;
         _dim = serializableInputIdentifier.dim;
         if (serializableInputIdentifier.equivalentIDs == null)
             _equivalentIDs = new List<UInt64>();
         else
             _equivalentIDs = serializableInputIdentifier.equivalentIDs;
     }
 }
예제 #2
0
 /// <summary>
 /// Return this InputIdentifier as a SerializableInputIdentifier
 /// </summary>
 /// <returns></returns>
 public SerializableInputIdentifier getSerializableInputIdentifier()
 {
     SerializableInputIdentifier retval = new SerializableInputIdentifier();
     retval.id = _id;
     retval.type = _type;
     retval.dim = _dim;
     if (_equivalentIDs == null)
         retval.equivalentIDs = new List<UInt64>();
     else
         retval.equivalentIDs = _equivalentIDs;
     return retval;
 }