Paradox Game Engine  v1.0.0 beta06
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Events Macros Pages
NullDisposable.cs
Go to the documentation of this file.
1 // Copyright (c) 2014 Silicon Studio Corp. (http://siliconstudio.co.jp)
2 // This file is distributed under GPL v3. See LICENSE.md for details.
3 using System;
4 
5 namespace SiliconStudio.Core
6 {
7  /// <summary>
8  /// This class is an implementation of the <see cref="IDisposable"/> interface that does nothing when disposed.
9  /// </summary>
10  public class NullDisposable : IDisposable
11  {
12  /// <summary>
13  /// A static instance of the <see cref="NullDisposable"/> class.
14  /// </summary>
15  public static readonly NullDisposable Instance = new NullDisposable();
16 
17  /// <summary>
18  /// Implementation of the <see cref="IDisposable.Dispose"/> method. This method does nothing.
19  /// </summary>
20  public void Dispose()
21  {
22  }
23  }
24 }
void Dispose()
Implementation of the IDisposable.Dispose method. This method does nothing.
This class is an implementation of the IDisposable interface that does nothing when disposed...