Skip to content

Commit 932576c

Browse files
authored
Merge pull request #1702 from drewnoakes/patch-6
Format code snippets
2 parents ecdbcec + 9a2139a commit 932576c

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

docs/extensibility/registering-and-unregistering-vspackages.md

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,9 @@ You use attributes to register a VSPackage, but
2727
[PackageRegistration(UseManagedResourcesOnly = true)]
2828
[Guid("0B81D86C-0A85-4f30-9B26-DD2616447F95")]
2929
public sealed class BasicPackage : Package
30-
{. . .}
30+
{
31+
// ...
32+
}
3133
```
3234

3335
## Unregister an extension
@@ -57,9 +59,9 @@ The following code shows how to create a new registration attribute.
5759

5860
```csharp
5961
[AttributeUsage(AttributeTargets.Class, Inherited = true, AllowMultiple = false)]
60-
public class CustomRegistrationAttribute : RegistrationAttribute
61-
{
62-
}
62+
public class CustomRegistrationAttribute : RegistrationAttribute
63+
{
64+
}
6365
```
6466

6567
The <xref:System.AttributeUsageAttribute> is used on attribute classes to specify the program element (class, method, etc.) to which the attribute pertains, whether it can be used more than once, and whether it can be inherited.
@@ -107,7 +109,7 @@ public override void Register(RegistrationAttribute.RegistrationContext context)
107109
{
108110
if (packageKey != null)
109111
packageKey.Close();
110-
}
112+
}
111113
}
112114

113115
public override void Unregister(RegistrationContext context)

0 commit comments

Comments
 (0)