From 66054786da7959512ea474756211b46013473f4b Mon Sep 17 00:00:00 2001 From: jbevain Date: Tue, 6 Apr 2010 14:56:10 +0000 Subject: [PATCH] add ExcludeFromCodeCoverageAttribute git-svn-id: svn+ssh://mono-cvs.ximian.com/source/trunk/mcs@154847 e3ebcda4-bce8-0310-ba0a-eca2169e7518 --- .../System.Diagnostics.CodeAnalysis/ChangeLog | 3 ++ .../ExcludeFromCodeCoverageAttribute.cs | 52 ++++++++++++++++++++++ class/System/System.dll.sources | 1 + 3 files changed, 56 insertions(+) create mode 100644 class/System/System.Diagnostics.CodeAnalysis/ChangeLog create mode 100644 class/System/System.Diagnostics.CodeAnalysis/ExcludeFromCodeCoverageAttribute.cs diff --git a/class/System/System.Diagnostics.CodeAnalysis/ChangeLog b/class/System/System.Diagnostics.CodeAnalysis/ChangeLog new file mode 100644 index 0000000000..17d25b0268 --- /dev/null +++ b/class/System/System.Diagnostics.CodeAnalysis/ChangeLog @@ -0,0 +1,3 @@ +2010-04-06 Jb Evain + + * ExcludeFromCodeCoverageAttribute.cs: new attribute. diff --git a/class/System/System.Diagnostics.CodeAnalysis/ExcludeFromCodeCoverageAttribute.cs b/class/System/System.Diagnostics.CodeAnalysis/ExcludeFromCodeCoverageAttribute.cs new file mode 100644 index 0000000000..fb6fb5b008 --- /dev/null +++ b/class/System/System.Diagnostics.CodeAnalysis/ExcludeFromCodeCoverageAttribute.cs @@ -0,0 +1,52 @@ +// +// ExcludeFromCodeCoverageAttribute.cs +// +// Authors: +// Jb Evain +// +// Copyright (C) 2010 Novell, Inc (http://www.novell.com) +// +// Permission is hereby granted, free of charge, to any person obtaining +// a copy of this software and associated documentation files (the +// "Software"), to deal in the Software without restriction, including +// without limitation the rights to use, copy, modify, merge, publish, +// distribute, sublicense, and/or sell copies of the Software, and to +// permit persons to whom the Software is furnished to do so, subject to +// the following conditions: +// +// The above copyright notice and this permission notice shall be +// included in all copies or substantial portions of the Software. +// +// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND +// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE +// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION +// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION +// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. +// + +using System; +using System.Runtime.InteropServices; + +#if NET_4_0 + +namespace System.Diagnostics.CodeAnalysis { + + [AttributeUsage (AttributeTargets.Class + | AttributeTargets.Struct + | AttributeTargets.Constructor + | AttributeTargets.Method + | AttributeTargets.Property + | AttributeTargets.Event, + AllowMultiple = false, + Inherited = false)] + public class ExcludeFromCodeCoverageAttribute : Attribute, _Attribute + { + public ExcludeFromCodeCoverageAttribute () + { + } + } +} + +#endif diff --git a/class/System/System.dll.sources b/class/System/System.dll.sources index 1e70449d00..06e1a5b248 100644 --- a/class/System/System.dll.sources +++ b/class/System/System.dll.sources @@ -567,6 +567,7 @@ System.Diagnostics/TraceSourceInfo.cs System.Diagnostics/TraceSwitch.cs System.Diagnostics/Win32EventLog.cs System.Diagnostics/XmlWriterTraceListener.cs +System.Diagnostics.CodeAnalysis/ExcludeFromCodeCoverageAttribute.cs System/FileStyleUriParser.cs System/FtpStyleUriParser.cs System/GenericUriParser.cs -- 2.11.4.GIT