示例#1
0
        public RCObjectChangedErrorRecord(SerializationInfo info, StreamingContext context)
        {
            OptimizedAttributes = null;
            ssSTObjectChanged   = new STObjectChangedStructure(null);
            ssSTError           = new STErrorStructure(null);
            Type      objInfo   = this.GetType();
            FieldInfo fieldInfo = null;

            fieldInfo = objInfo.GetField("ssSTObjectChanged", BindingFlags.NonPublic | BindingFlags.Instance | BindingFlags.Public);
            if (fieldInfo == null)
            {
                throw new Exception("The field named 'ssSTObjectChanged' was not found.");
            }
            if (fieldInfo.FieldType.IsSerializable)
            {
                ssSTObjectChanged = (STObjectChangedStructure)info.GetValue(fieldInfo.Name, fieldInfo.FieldType);
            }
            fieldInfo = objInfo.GetField("ssSTError", BindingFlags.NonPublic | BindingFlags.Instance | BindingFlags.Public);
            if (fieldInfo == null)
            {
                throw new Exception("The field named 'ssSTError' was not found.");
            }
            if (fieldInfo.FieldType.IsSerializable)
            {
                ssSTError = (STErrorStructure)info.GetValue(fieldInfo.Name, fieldInfo.FieldType);
            }
        }
示例#2
0
 public RCObjectChangedRecord(params string[] dummy)
 {
     OptimizedAttributes = null;
     ssSTObjectChanged   = new STObjectChangedStructure(null);
 }