Пример #1
0
            //-------------------------------------------------------------------------------------------------------------------------------------------------

            private Field <List <string> > BindToLogField(ClassType classType, ClassWriterBase writer)
            {
                var actionLogField = classType.GetAllMembers().OfType <FieldMember>().Single(f => !f.IsStatic && f.FieldType == typeof(List <string>));

                return(actionLogField.AsOperand <List <string> >());
            }
Пример #2
0
        //-----------------------------------------------------------------------------------------------------------------------------------------------------

        private string[] ListClassFields(ClassType classType)
        {
            return(classType.GetAllMembers().OfType <FieldMember>().Select(m => m.ToString()).ToArray());
        }