forked from jnm2/IDisposableAnalyzers
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added VB version from DotNetAnalyzers#218 (comment).
- Loading branch information
Showing
1 changed file
with
27 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
Namespace IDisposableAnalyzers | ||
Imports System | ||
|
||
''' <summary> | ||
''' The return value must be disposed by the caller. | ||
''' </summary> | ||
<AttributeUsage(AttributeTargets.ReturnValue Or AttributeTargets.Parameter, AllowMultiple:=False, Inherited:=True)> | ||
Friend NotInheritable Class GivesOwnershipAttribute | ||
Inherits Attribute | ||
End Class | ||
|
||
''' <summary> | ||
''' The return value must not be disposed by the caller. | ||
''' </summary> | ||
<AttributeUsage(AttributeTargets.ReturnValue Or AttributeTargets.Parameter, AllowMultiple:=False, Inherited:=True)> | ||
Friend NotInheritable Class KeepsOwnershipAttribute | ||
Inherits Attribute | ||
End Class | ||
|
||
''' <summary> | ||
''' The ownership of instance is transferred and the receiver is responsible for disposing. | ||
''' </summary> | ||
<AttributeUsage(AttributeTargets.Parameter, AllowMultiple:=False, Inherited:=True)> | ||
Friend NotInheritable Class TakesOwnershipAttribute | ||
Inherits Attribute | ||
End Class | ||
End Namespace |