UnityEditor.MaterialEditor.Init C# (CSharp) Method

Init() private method

private Init ( ) : void
return void
        private void Init()
        {
            if (this.m_PreviewUtility == null)
            {
                this.m_PreviewUtility = new PreviewRenderUtility();
                EditorUtility.SetCameraAnimateMaterials(this.m_PreviewUtility.m_Camera, true);
            }
            if (s_Meshes[0] == null)
            {
                GameObject obj2 = (GameObject) EditorGUIUtility.LoadRequired("Previews/PreviewMaterials.fbx");
                obj2.SetActive(false);
                IEnumerator enumerator = obj2.transform.GetEnumerator();
                try
                {
                    while (enumerator.MoveNext())
                    {
                        Transform current = (Transform) enumerator.Current;
                        MeshFilter component = current.GetComponent<MeshFilter>();
                        string name = current.name;
                        if (name != null)
                        {
                            int num;
                            if (<>f__switch$map1A == null)
                            {
                                Dictionary<string, int> dictionary = new Dictionary<string, int>(4);
                                dictionary.Add("sphere", 0);
                                dictionary.Add("cube", 1);
                                dictionary.Add("cylinder", 2);
                                dictionary.Add("torus", 3);
                                <>f__switch$map1A = dictionary;
                            }
                            if (<>f__switch$map1A.TryGetValue(name, out num))
                            {
                                switch (num)
                                {
                                    case 0:
                                    {
                                        s_Meshes[0] = component.sharedMesh;
                                        continue;
                                    }
                                    case 1:
                                    {
                                        s_Meshes[1] = component.sharedMesh;
                                        continue;
                                    }
                                    case 2:
                                    {
                                        s_Meshes[2] = component.sharedMesh;
                                        continue;
                                    }
                                    case 3:
                                    {
                                        s_Meshes[3] = component.sharedMesh;
                                        continue;
                                    }
                                }
                            }
                        }
                        Debug.Log("Something is wrong, weird object found: " + current.name);
                    }
                }
                finally
                {
                    IDisposable disposable = enumerator as IDisposable;
                    if (disposable == null)
                    {
                    }
                    disposable.Dispose();
                }
                s_MeshIcons[0] = EditorGUIUtility.IconContent("PreMatSphere");
                s_MeshIcons[1] = EditorGUIUtility.IconContent("PreMatCube");
                s_MeshIcons[2] = EditorGUIUtility.IconContent("PreMatCylinder");
                s_MeshIcons[3] = EditorGUIUtility.IconContent("PreMatTorus");
                s_LightIcons[0] = EditorGUIUtility.IconContent("PreMatLight0");
                s_LightIcons[1] = EditorGUIUtility.IconContent("PreMatLight1");
                s_TimeIcons[0] = EditorGUIUtility.IconContent("PlayButton");
                s_TimeIcons[1] = EditorGUIUtility.IconContent("PauseButton");
                s_PlaneMesh = Resources.GetBuiltinResource(typeof(Mesh), "Quad.fbx") as Mesh;
            }
        }
MaterialEditor