private static void BuildDrawerTypeForTypeDictionary() { ScriptAttributeUtility.s_DrawerTypeForType = new Dictionary<System.Type, ScriptAttributeUtility.DrawerKeySet>(); System.Type[] array = ((IEnumerable<Assembly>) AppDomain.CurrentDomain.GetAssemblies()).SelectMany<Assembly, System.Type>((Func<Assembly, IEnumerable<System.Type>>) (x => (IEnumerable<System.Type>) AssemblyHelper.GetTypesFromAssembly(x))).ToArray<System.Type>(); foreach (System.Type type in EditorAssemblies.SubclassesOf(typeof (GUIDrawer))) { object[] customAttributes = type.GetCustomAttributes(typeof (CustomPropertyDrawer), true); // ISSUE: object of a compiler-generated type is created // ISSUE: variable of a compiler-generated type ScriptAttributeUtility.\u003CBuildDrawerTypeForTypeDictionary\u003Ec__AnonStoreyB0 dictionaryCAnonStoreyB0 = new ScriptAttributeUtility.\u003CBuildDrawerTypeForTypeDictionary\u003Ec__AnonStoreyB0(); foreach (CustomPropertyDrawer customPropertyDrawer in customAttributes) { // ISSUE: reference to a compiler-generated field dictionaryCAnonStoreyB0.editor = customPropertyDrawer; // ISSUE: reference to a compiler-generated field // ISSUE: reference to a compiler-generated field ScriptAttributeUtility.s_DrawerTypeForType[dictionaryCAnonStoreyB0.editor.m_Type] = new ScriptAttributeUtility.DrawerKeySet() { drawer = type, type = dictionaryCAnonStoreyB0.editor.m_Type }; // ISSUE: reference to a compiler-generated field if (dictionaryCAnonStoreyB0.editor.m_UseForChildren) { // ISSUE: reference to a compiler-generated method foreach (System.Type key in ((IEnumerable<System.Type>) array).Where<System.Type>(new Func<System.Type, bool>(dictionaryCAnonStoreyB0.\u003C\u003Em__1FB))) { // ISSUE: reference to a compiler-generated field if (!ScriptAttributeUtility.s_DrawerTypeForType.ContainsKey(key) || !dictionaryCAnonStoreyB0.editor.m_Type.IsAssignableFrom(ScriptAttributeUtility.s_DrawerTypeForType[key].type)) { // ISSUE: reference to a compiler-generated field ScriptAttributeUtility.s_DrawerTypeForType[key] = new ScriptAttributeUtility.DrawerKeySet() { drawer = type, type = dictionaryCAnonStoreyB0.editor.m_Type }; } } } } } }
private static void BuildDrawerTypeForTypeDictionary() { ScriptAttributeUtility.s_DrawerTypeForType = new Dictionary <System.Type, ScriptAttributeUtility.DrawerKeySet>(); System.Type[] array = ((IEnumerable <Assembly>)AppDomain.CurrentDomain.GetAssemblies()).SelectMany <Assembly, System.Type>((Func <Assembly, IEnumerable <System.Type> >)(x => (IEnumerable <System.Type>)AssemblyHelper.GetTypesFromAssembly(x))).ToArray <System.Type>(); foreach (System.Type type in EditorAssemblies.SubclassesOf(typeof(GUIDrawer))) { object[] customAttributes = type.GetCustomAttributes(typeof(CustomPropertyDrawer), true); // ISSUE: object of a compiler-generated type is created // ISSUE: variable of a compiler-generated type ScriptAttributeUtility.\u003CBuildDrawerTypeForTypeDictionary\u003Ec__AnonStoreyB0 dictionaryCAnonStoreyB0 = new ScriptAttributeUtility.\u003CBuildDrawerTypeForTypeDictionary\u003Ec__AnonStoreyB0(); foreach (CustomPropertyDrawer customPropertyDrawer in customAttributes) { // ISSUE: reference to a compiler-generated field dictionaryCAnonStoreyB0.editor = customPropertyDrawer; // ISSUE: reference to a compiler-generated field // ISSUE: reference to a compiler-generated field ScriptAttributeUtility.s_DrawerTypeForType[dictionaryCAnonStoreyB0.editor.m_Type] = new ScriptAttributeUtility.DrawerKeySet() { drawer = type, type = dictionaryCAnonStoreyB0.editor.m_Type }; // ISSUE: reference to a compiler-generated field if (dictionaryCAnonStoreyB0.editor.m_UseForChildren) { // ISSUE: reference to a compiler-generated method foreach (System.Type key in ((IEnumerable <System.Type>)array).Where <System.Type>(new Func <System.Type, bool>(dictionaryCAnonStoreyB0.\u003C\u003Em__1FB))) { // ISSUE: reference to a compiler-generated field if (!ScriptAttributeUtility.s_DrawerTypeForType.ContainsKey(key) || !dictionaryCAnonStoreyB0.editor.m_Type.IsAssignableFrom(ScriptAttributeUtility.s_DrawerTypeForType[key].type)) { // ISSUE: reference to a compiler-generated field ScriptAttributeUtility.s_DrawerTypeForType[key] = new ScriptAttributeUtility.DrawerKeySet() { drawer = type, type = dictionaryCAnonStoreyB0.editor.m_Type }; } } } } } }