Пример #1
0
        public static void AddExportProperty(string exportClassName, FieldInfo info)
        {
            ExportClass ec = GetExportClass(exportClassName);

            ec.fullClassName   = info.DeclaringType.ToString();
            ec.className       = Rolance.Utils.cutNamespace(info.DeclaringType.ToString());
            ec.exportClassName = exportClassName;

            string         propertyName = info.Name;
            ExportProperty ep           = ec.GetProperty(propertyName);

            ep.propertyName = propertyName;

            ep.fi = info;
        }
Пример #2
0
        public ExportProperty GetProperty(string methodName)
        {
            ExportProperty em;

            if (propertyDict.ContainsKey(methodName))
            {
                em = propertyDict[methodName];
            }
            else
            {
                em = new ExportProperty();
                propertyDict.Add(methodName, em);
                em.ec = this;
            }

            return(em);
        }