From 6c73372183ea267a5bb92d9f50f2df62b8675909 Mon Sep 17 00:00:00 2001 From: AraHaan Date: Sun, 14 Feb 2021 15:00:14 -0500 Subject: [PATCH] Added VB version from https://github.com/DotNetAnalyzers/IDisposableAnalyzers/pull/218#discussion_r575847829. --- .../build/OwnershipAttributes.vb | 27 +++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 IDisposableAnalyzers/build/OwnershipAttributes.vb diff --git a/IDisposableAnalyzers/build/OwnershipAttributes.vb b/IDisposableAnalyzers/build/OwnershipAttributes.vb new file mode 100644 index 00000000..171105ec --- /dev/null +++ b/IDisposableAnalyzers/build/OwnershipAttributes.vb @@ -0,0 +1,27 @@ +Namespace IDisposableAnalyzers + Imports System + + ''' + ''' The return value must be disposed by the caller. + ''' + + Friend NotInheritable Class GivesOwnershipAttribute + Inherits Attribute + End Class + + ''' + ''' The return value must not be disposed by the caller. + ''' + + Friend NotInheritable Class KeepsOwnershipAttribute + Inherits Attribute + End Class + + ''' + ''' The ownership of instance is transferred and the receiver is responsible for disposing. + ''' + + Friend NotInheritable Class TakesOwnershipAttribute + Inherits Attribute + End Class +End Namespace