/SolutionFramework/VisualStudioProvider/MSBuild/Internal/Performance/CodeMarkerStartEnd.cs
C# | 25 lines | 21 code | 4 blank | 0 comment | 2 complexity | 79e6470cc1598c801b1127066c8a63bd MD5 | raw file
Possible License(s): Apache-2.0, LGPL-3.0
- namespace Microsoft.Internal.Performance
- {
- using System;
-
- internal sealed class CodeMarkerStartEnd : IDisposable
- {
- private Microsoft.Internal.Performance.CodeMarkerEvent _end;
-
- public CodeMarkerStartEnd(Microsoft.Internal.Performance.CodeMarkerEvent begin, Microsoft.Internal.Performance.CodeMarkerEvent end)
- {
- Microsoft.Internal.Performance.CodeMarkers.Instance.CodeMarker(begin);
- this._end = end;
- }
-
- public void Dispose()
- {
- if (this._end != ((Microsoft.Internal.Performance.CodeMarkerEvent) 0))
- {
- Microsoft.Internal.Performance.CodeMarkers.Instance.CodeMarker(this._end);
- this._end = (Microsoft.Internal.Performance.CodeMarkerEvent) 0;
- }
- }
- }
- }
-