Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update 'dev' snippets #73

Merged
merged 4 commits into from
Nov 1, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<CodeSnippet Format="1.1.0" xmlns="http://schemas.microsoft.com/VisualStudio/2005/CodeSnippet">
<Header>
<Title>break statement</Title>
<Shortcut>bk</Shortcut>
<Shortcut>br</Shortcut>
<Description>break statement</Description>
<Author>Josef Pihrt</Author>
<SnippetTypes>
Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,23 +1,32 @@
<!--Copyright (c) Josef Pihrt. All rights reserved. Licensed under the Apache License, Version 2.0.-->
<CodeSnippet Format="1.1.0" xmlns="http://schemas.microsoft.com/VisualStudio/2005/CodeSnippet">
<Header>
<Title>if equal to null return null</Title>
<Shortcut>ifnren</Shortcut>
<Description>if equal to null return null</Description>
<Title>Debug.Assert is null</Title>
<Shortcut>dan</Shortcut>
<Description>Debug.Assert method with condition whether the expression is equal to null</Description>
<Author>Josef Pihrt</Author>
<SnippetTypes>
<SnippetType>Expansion</SnippetType>
</SnippetTypes>
</Header>
<Snippet>
<Imports>
<Import>
<Namespace>System.Diagnostics</Namespace>
</Import>
</Imports>
<Declarations>
<Literal>
<ID>expression</ID>
<ToolTip>Expression to evaluate</ToolTip>
<Default>x</Default>
</Literal>
<Literal>
<ID>message</ID>
<ToolTip>The message text</ToolTip>
<Default>""</Default>
</Literal>
</Declarations>
<Code Language="CSharp"><![CDATA[if ($expression$ is null)
return null;$end$]]></Code>
<Code Language="CSharp"><![CDATA[Debug.Assert($expression$ is null, $message$);$end$]]></Code>
</Snippet>
</CodeSnippet>

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

Loading