Exemplo n.º 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);
            }
        }
Exemplo n.º 2
0
 public RCErrorRecord(params string[] dummy)
 {
     OptimizedAttributes = null;
     ssSTError           = new STErrorStructure(null);
 }
Exemplo n.º 3
0
 public RCObjectChangedErrorRecord(params string[] dummy)
 {
     OptimizedAttributes = null;
     ssSTObjectChanged   = new STObjectChangedStructure(null);
     ssSTError           = new STErrorStructure(null);
 }