//------------------------------------------------------------------------------------------------------------------------------------------------- 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> >()); }
//----------------------------------------------------------------------------------------------------------------------------------------------------- private string[] ListClassFields(ClassType classType) { return(classType.GetAllMembers().OfType <FieldMember>().Select(m => m.ToString()).ToArray()); }