Exemplo n.º 1
0
        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);
            }
        }
Exemplo n.º 2
0
 public RCCabecalhoRecord(params string[] dummy)
 {
     OptimizedAttributes = null;
     ssSTCabecalho       = new STCabecalhoStructure(null);
 }