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