예제 #1
0
 void IDeserializationCallback.OnDeserialization(object sender)
 {
     lock (this)
     {
         _wq = new FIFOWaitNodeQueue();
     }
 }
예제 #2
0
 private FairSync(SerializationInfo info, StreamingContext context)
 {
     Type thisType = this.GetType();
     MemberInfo[] mi = FormatterServices.GetSerializableMembers(thisType, context);
     for (int i = 0; i < mi.Length; i++)
     {
         FieldInfo fi = (FieldInfo)mi[i];
         fi.SetValue(this, info.GetValue(fi.Name, fi.FieldType));
     }
     lock (this)
     {
         _wq = new FIFOWaitNodeQueue();
     }
 }
예제 #3
0
 void IDeserializationCallback.OnDeserialization(object sender)
 {
     lock (this)
     {
         _wq = new FIFOWaitNodeQueue();
     }
 }