public RCCabecalhoRecord(SerializationInfo info, StreamingContext context) { OptimizedAttributes = null; ssSTCabecalho = new STCabecalhoStructure(null); Type objInfo = this.GetType(); FieldInfo fieldInfo = null; fieldInfo = objInfo.GetField("ssSTCabecalho", BindingFlags.NonPublic | BindingFlags.Instance | BindingFlags.Public); if (fieldInfo == null) { throw new Exception("The field named 'ssSTCabecalho' was not found."); } if (fieldInfo.FieldType.IsSerializable) { ssSTCabecalho = (STCabecalhoStructure)info.GetValue(fieldInfo.Name, fieldInfo.FieldType); } }
public RCCabecalhoRecord(params string[] dummy) { OptimizedAttributes = null; ssSTCabecalho = new STCabecalhoStructure(null); }