string GenTypeCode(Type type, ITypeHandler typeHandler)
        {
            IFiledHandler[] Handlers = typeHandler.GetFiledHandlers();
            List <string>   sbfs     = new List <string>();

            foreach (var Handler in Handlers)
            {
                var sbf = GetFiledInfo(type, Handler);
                sbfs.Add(sbf);
            }

            return(typeHandler.DealType(type, sbfs));
        }
Beispiel #2
0
        string GenTypeCode(Type type, ITypeHandler typeHandler)
        {
            var fileds = FilterFields(type.GetFields(bindingAttr));

            IFiledHandler[] Handlers = typeHandler.GetFiledHandlers();
            List <string>   sbfs     = new List <string>();

            foreach (var Handler in Handlers)
            {
                var sbf = GetFiledInfo(fileds, Handler);
                sbfs.Add(sbf);
            }

            return(typeHandler.DealType(type, sbfs));
        }