Dispose() 보호된 메소드

Clean up any resources being used.
protected Dispose ( bool disposing ) : void
disposing bool true if managed resources should be disposed; otherwise, false.
리턴 void
예제 #1
0
        public void DisposeEditor()
        {
            if (editor == null)
            {
                return;
            }

            editor.Dispose();
            editor = null;
        }
예제 #2
0
파일: Project.cs 프로젝트: Babelz/MapEditor
        // TODO: loading and saving... or?

        public void Dispose()
        {
            if (disposed)
            {
                return;
            }

            editor.Dispose();
            game.Dispose();

            disposed = true;
        }