internal static System.Type FindCustomEditorTypeByType(System.Type type, bool multiEdit) { // ISSUE: object of a compiler-generated type is created // ISSUE: variable of a compiler-generated type CustomEditorAttributes.\u003CFindCustomEditorTypeByType\u003Ec__AnonStorey35 typeCAnonStorey35 = new CustomEditorAttributes.\u003CFindCustomEditorTypeByType\u003Ec__AnonStorey35(); // ISSUE: reference to a compiler-generated field typeCAnonStorey35.type = type; if (!CustomEditorAttributes.s_Initialized) { Assembly[] loadedAssemblies = EditorAssemblies.loadedAssemblies; for (int index = loadedAssemblies.Length - 1; index >= 0; --index) CustomEditorAttributes.Rebuild(loadedAssemblies[index]); CustomEditorAttributes.s_Initialized = true; } List<CustomEditorAttributes.MonoEditorType> source = !multiEdit ? CustomEditorAttributes.kSCustomEditors : CustomEditorAttributes.kSCustomMultiEditors; // ISSUE: object of a compiler-generated type is created // ISSUE: variable of a compiler-generated type CustomEditorAttributes.\u003CFindCustomEditorTypeByType\u003Ec__AnonStorey37 typeCAnonStorey37 = new CustomEditorAttributes.\u003CFindCustomEditorTypeByType\u003Ec__AnonStorey37(); // ISSUE: reference to a compiler-generated field // ISSUE: reference to a compiler-generated field // ISSUE: reference to a compiler-generated field // ISSUE: reference to a compiler-generated field for (typeCAnonStorey37.pass = 0; typeCAnonStorey37.pass < 2; typeCAnonStorey37.pass = typeCAnonStorey37.pass + 1) { // ISSUE: object of a compiler-generated type is created // ISSUE: variable of a compiler-generated type CustomEditorAttributes.\u003CFindCustomEditorTypeByType\u003Ec__AnonStorey36 typeCAnonStorey36 = new CustomEditorAttributes.\u003CFindCustomEditorTypeByType\u003Ec__AnonStorey36(); // ISSUE: reference to a compiler-generated field typeCAnonStorey36.\u003C\u003Ef__ref\u002453 = typeCAnonStorey35; // ISSUE: reference to a compiler-generated field typeCAnonStorey36.\u003C\u003Ef__ref\u002455 = typeCAnonStorey37; // ISSUE: reference to a compiler-generated field // ISSUE: reference to a compiler-generated field // ISSUE: reference to a compiler-generated field // ISSUE: reference to a compiler-generated field // ISSUE: reference to a compiler-generated field for (typeCAnonStorey36.inspected = typeCAnonStorey35.type; typeCAnonStorey36.inspected != null; typeCAnonStorey36.inspected = typeCAnonStorey36.inspected.BaseType) { // ISSUE: reference to a compiler-generated method CustomEditorAttributes.MonoEditorType monoEditorType = source.FirstOrDefault<CustomEditorAttributes.MonoEditorType>(new Func<CustomEditorAttributes.MonoEditorType, bool>(typeCAnonStorey36.\u003C\u003Em__4C)); if (monoEditorType != null) return monoEditorType.m_InspectorType; } } return (System.Type) null; }
internal static System.Type FindCustomEditorTypeByType(System.Type type, bool multiEdit) { // ISSUE: object of a compiler-generated type is created // ISSUE: variable of a compiler-generated type CustomEditorAttributes.\u003CFindCustomEditorTypeByType\u003Ec__AnonStorey35 typeCAnonStorey35 = new CustomEditorAttributes.\u003CFindCustomEditorTypeByType\u003Ec__AnonStorey35(); // ISSUE: reference to a compiler-generated field typeCAnonStorey35.type = type; if (!CustomEditorAttributes.s_Initialized) { Assembly[] loadedAssemblies = EditorAssemblies.loadedAssemblies; for (int index = loadedAssemblies.Length - 1; index >= 0; --index) { CustomEditorAttributes.Rebuild(loadedAssemblies[index]); } CustomEditorAttributes.s_Initialized = true; } List <CustomEditorAttributes.MonoEditorType> source = !multiEdit ? CustomEditorAttributes.kSCustomEditors : CustomEditorAttributes.kSCustomMultiEditors; // ISSUE: object of a compiler-generated type is created // ISSUE: variable of a compiler-generated type CustomEditorAttributes.\u003CFindCustomEditorTypeByType\u003Ec__AnonStorey37 typeCAnonStorey37 = new CustomEditorAttributes.\u003CFindCustomEditorTypeByType\u003Ec__AnonStorey37(); // ISSUE: reference to a compiler-generated field // ISSUE: reference to a compiler-generated field // ISSUE: reference to a compiler-generated field // ISSUE: reference to a compiler-generated field for (typeCAnonStorey37.pass = 0; typeCAnonStorey37.pass < 2; typeCAnonStorey37.pass = typeCAnonStorey37.pass + 1) { // ISSUE: object of a compiler-generated type is created // ISSUE: variable of a compiler-generated type CustomEditorAttributes.\u003CFindCustomEditorTypeByType\u003Ec__AnonStorey36 typeCAnonStorey36 = new CustomEditorAttributes.\u003CFindCustomEditorTypeByType\u003Ec__AnonStorey36(); // ISSUE: reference to a compiler-generated field typeCAnonStorey36.\u003C\u003Ef__ref\u002453 = typeCAnonStorey35; // ISSUE: reference to a compiler-generated field typeCAnonStorey36.\u003C\u003Ef__ref\u002455 = typeCAnonStorey37; // ISSUE: reference to a compiler-generated field // ISSUE: reference to a compiler-generated field // ISSUE: reference to a compiler-generated field // ISSUE: reference to a compiler-generated field // ISSUE: reference to a compiler-generated field for (typeCAnonStorey36.inspected = typeCAnonStorey35.type; typeCAnonStorey36.inspected != null; typeCAnonStorey36.inspected = typeCAnonStorey36.inspected.BaseType) { // ISSUE: reference to a compiler-generated method CustomEditorAttributes.MonoEditorType monoEditorType = source.FirstOrDefault <CustomEditorAttributes.MonoEditorType>(new Func <CustomEditorAttributes.MonoEditorType, bool>(typeCAnonStorey36.\u003C\u003Em__4C)); if (monoEditorType != null) { return(monoEditorType.m_InspectorType); } } } return((System.Type)null); }