Esempio n. 1
0
        public static void CreateField(TransformRecordDefinition recDef, string name, IntManFieldTypeEnum type, string[] attribs, string[] attribVals)
        {
            TransformRecordField fld = recDef.CreateField(name);

            fld.Type = type;

            if (attribs.Length != attribVals.Length)
            {
                throw new ArgumentException("Error creating fields; attribs and attribVals lengths do not match.");
            }

            for (int i = 0; i < attribs.Length; i++)
            {
                fld.Attributes.SetAttribute(attribs[i], attribVals[i]);
            }
        }
Esempio n. 2
0
        public static void CreateField(TransformRecordDefinition recDef, string name, IntManFieldTypeEnum type)
        {
            TransformRecordField fld = recDef.CreateField(name);

            fld.Type = type;
        }