Explorar o código

* Style.cs: performance optimization: suppress finalizer added

svn path=/trunk/mcs/; revision=89919
Vladimir Krasnov %!s(int64=18) %!d(string=hai) anos
pai
achega
c15337098f

+ 4 - 0
mcs/class/System.Web/System.Web.UI.WebControls/ChangeLog

@@ -1,3 +1,7 @@
+2007-11-19  Vladimir Krasnov  <[email protected]>
+
+	* Style.cs: performance optimization: suppress finalizer added
+
 2007-11-08 Igor Zelmanovich <[email protected]>
 
 	* BoundField.cs:

+ 2 - 0
mcs/class/System.Web/System.Web.UI.WebControls/Style.cs

@@ -84,6 +84,7 @@ namespace System.Web.UI.WebControls {
 		public Style()
 		{
 			viewstate = new StateBag ();
+			GC.SuppressFinalize (this);
 		}
 
 		public Style(System.Web.UI.StateBag bag) 
@@ -92,6 +93,7 @@ namespace System.Web.UI.WebControls {
 			if (viewstate == null)
 				viewstate = new StateBag ();
 			_isSharedViewState = true;
+			GC.SuppressFinalize (this);
 		}
 		#endregion	// Public Constructors