-
-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
558a742
commit 32ea029
Showing
29 changed files
with
16 additions
and
654 deletions.
There are no files selected for viewing
35 changes: 0 additions & 35 deletions
35
...ippetica.CodeGeneration.Metadata/Snippetica.CSharp/Dev/AutoGeneration/NewArrayOfT.snippet
This file was deleted.
Oops, something went wrong.
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
15 changes: 0 additions & 15 deletions
15
src/Snippetica.CodeGeneration.Metadata/Snippetica.CSharp/Dev/ContinueStatement.snippet
This file was deleted.
Oops, something went wrong.
File renamed without changes.
19 changes: 14 additions & 5 deletions
19
...Sharp/Dev/IfEqualToNullReturnNull.snippet → ...tica.CSharp/Dev/DebugAssertIsNull.snippet
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 |
---|---|---|
@@ -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> |
40 changes: 0 additions & 40 deletions
40
src/Snippetica.CodeGeneration.Metadata/Snippetica.CSharp/Dev/IfEnumTryParse.snippet
This file was deleted.
Oops, something went wrong.
23 changes: 0 additions & 23 deletions
23
src/Snippetica.CodeGeneration.Metadata/Snippetica.CSharp/Dev/IfEqualToNullReturn.snippet
This file was deleted.
Oops, something went wrong.
23 changes: 0 additions & 23 deletions
23
...ippetica.CodeGeneration.Metadata/Snippetica.CSharp/Dev/IfEqualToNullReturnDefault.snippet
This file was deleted.
Oops, something went wrong.
23 changes: 0 additions & 23 deletions
23
...Snippetica.CodeGeneration.Metadata/Snippetica.CSharp/Dev/IfEqualToNullReturnFalse.snippet
This file was deleted.
Oops, something went wrong.
23 changes: 0 additions & 23 deletions
23
src/Snippetica.CodeGeneration.Metadata/Snippetica.CSharp/Dev/IfEqualToNullReturnTrue.snippet
This file was deleted.
Oops, something went wrong.
40 changes: 0 additions & 40 deletions
40
src/Snippetica.CodeGeneration.Metadata/Snippetica.CSharp/Dev/IfNotEnumTryParse.snippet
This file was deleted.
Oops, something went wrong.
23 changes: 0 additions & 23 deletions
23
src/Snippetica.CodeGeneration.Metadata/Snippetica.CSharp/Dev/IfNotEqualToNullReturn.snippet
This file was deleted.
Oops, something went wrong.
23 changes: 0 additions & 23 deletions
23
...etica.CodeGeneration.Metadata/Snippetica.CSharp/Dev/IfNotEqualToNullReturnDefault.snippet
This file was deleted.
Oops, something went wrong.
23 changes: 0 additions & 23 deletions
23
...ppetica.CodeGeneration.Metadata/Snippetica.CSharp/Dev/IfNotEqualToNullReturnFalse.snippet
This file was deleted.
Oops, something went wrong.
23 changes: 0 additions & 23 deletions
23
...ippetica.CodeGeneration.Metadata/Snippetica.CSharp/Dev/IfNotEqualToNullReturnNull.snippet
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.