Beispiel #1
0
        public virtual GenericFormRecord CreateGenericFormRecord(FormKind kind)
        {
            var recordType = GetRecordType(kind);
            var recinf     = InfoProvider.GetRecordInfo(recordType);
            var record     = recinf.CreateInstance();

            record.Version = recinf.Version > 0 ? (ushort)recinf.Version : GetLatestFormVersion();
            return(record);
        }
Beispiel #2
0
        public FormKind GetRecordFormKind(Type recordType)
        {
            var recinf = InfoProvider.GetRecordInfo(recordType);

            return((FormKind)recinf.Signature);
        }
Beispiel #3
0
        private void AddSupportedType(Type type)
        {
            var recinfo = InfoProvider.GetRecordInfo(type);

            formKindToRecordTypeMap.Add((FormKind)recinfo.Signature, type);
        }