File tree Expand file tree Collapse file tree 10 files changed +338
-0
lines changed Expand file tree Collapse file tree 10 files changed +338
-0
lines changed Original file line number Diff line number Diff line change 1+ # Code Snippet C#
2+
3+ ## C# snippet code set to add to Visual Studio.
4+ Shortcuts for building codes quickly, without having to enter the same standard codes all the time.
5+
6+ __ Code Snippets to:__
7+
8+ - [x] Methods => in development...
Original file line number Diff line number Diff line change 1+ <?xml version="1.0" encoding="utf-8"?>
2+ <CodeSnippets xmlns="http://schemas.microsoft.com/VisualStudio/2005/CodeSnippet">
3+ <CodeSnippet Format="1.0.0">
4+ <Header>
5+ <Title>_m</Title>
6+ <Author>brunomoura.dev</Author>
7+ <Description>Create public method with type to define.</Description>
8+ <Shortcut>_m</Shortcut>
9+ </Header>
10+ <Snippet>
11+ <Code Language="CSharp">
12+ <![CDATA[public $type$ $Name$($params$) {
13+ $content$
14+ }]]>
15+ </Code>
16+ <Declarations>
17+ <Literal>
18+ <ID>type</ID>
19+ <ToolTip>Enter method type.</ToolTip>
20+ <Default>void</Default>
21+ </Literal>
22+ <Literal>
23+ <ID>Name</ID>
24+ <ToolTip>Enter the name of the method.</ToolTip>
25+ <Default>Method</Default>
26+ </Literal>
27+ <Literal>
28+ <ID>content</ID>
29+ <ToolTip>Content of the method.</ToolTip>
30+ <Default>throw new NotImplementedException();</Default>
31+ </Literal>
32+ <Literal>
33+ <ID>params</ID>
34+ <ToolTip>Method parameters.</ToolTip>
35+ <Default></Default>
36+ </Literal>
37+ </Declarations>
38+ </Snippet>
39+ </CodeSnippet>
40+ </CodeSnippets>
Original file line number Diff line number Diff line change 1+ <?xml version="1.0" encoding="utf-8"?>
2+ <CodeSnippets xmlns="http://schemas.microsoft.com/VisualStudio/2005/CodeSnippet">
3+ <CodeSnippet Format="1.0.0">
4+ <Header>
5+ <Title>_mp</Title>
6+ <Author>brunomoura.dev</Author>
7+ <Description>Create private method with type to define.</Description>
8+ <Shortcut>_mp</Shortcut>
9+ </Header>
10+ <Snippet>
11+ <Code Language="CSharp">
12+ <![CDATA[private $type$ $Name$($params$) {
13+ $content$
14+ }]]>
15+ </Code>
16+ <Declarations>
17+ <Literal>
18+ <ID>type</ID>
19+ <ToolTip>Enter method type.</ToolTip>
20+ <Default>void</Default>
21+ </Literal>
22+ <Literal>
23+ <ID>Name</ID>
24+ <ToolTip>Enter the name of the method.</ToolTip>
25+ <Default>Method</Default>
26+ </Literal>
27+ <Literal>
28+ <ID>content</ID>
29+ <ToolTip>Content of the method.</ToolTip>
30+ <Default>throw new NotImplementedException();</Default>
31+ </Literal>
32+ <Literal>
33+ <ID>params</ID>
34+ <ToolTip>Method parameters.</ToolTip>
35+ <Default></Default>
36+ </Literal>
37+ </Declarations>
38+ </Snippet>
39+ </CodeSnippet>
40+ </CodeSnippets>
Original file line number Diff line number Diff line change 1+ <?xml version="1.0" encoding="utf-8"?>
2+ <CodeSnippets xmlns="http://schemas.microsoft.com/VisualStudio/2005/CodeSnippet">
3+ <CodeSnippet Format="1.0.0">
4+ <Header>
5+ <Title>_mprot</Title>
6+ <Author>brunomoura.dev</Author>
7+ <Description>Create protected method with type to define.</Description>
8+ <Shortcut>_mprot</Shortcut>
9+ </Header>
10+ <Snippet>
11+ <Code Language="CSharp">
12+ <![CDATA[protected $type$ $Name$($params$) {
13+ $content$
14+ }]]>
15+ </Code>
16+ <Declarations>
17+ <Literal>
18+ <ID>type</ID>
19+ <ToolTip>Enter method type.</ToolTip>
20+ <Default>void</Default>
21+ </Literal>
22+ <Literal>
23+ <ID>Name</ID>
24+ <ToolTip>Enter the name of the method.</ToolTip>
25+ <Default>Method</Default>
26+ </Literal>
27+ <Literal>
28+ <ID>content</ID>
29+ <ToolTip>Content of the method.</ToolTip>
30+ <Default>throw new NotImplementedException();</Default>
31+ </Literal>
32+ <Literal>
33+ <ID>params</ID>
34+ <ToolTip>Method parameters.</ToolTip>
35+ <Default></Default>
36+ </Literal>
37+ </Declarations>
38+ </Snippet>
39+ </CodeSnippet>
40+ </CodeSnippets>
Original file line number Diff line number Diff line change 1+ <?xml version="1.0" encoding="utf-8"?>
2+ <CodeSnippets xmlns="http://schemas.microsoft.com/VisualStudio/2005/CodeSnippet">
3+ <CodeSnippet Format="1.0.0">
4+ <Header>
5+ <Title>_mdouble</Title>
6+ <Author>brunomoura.dev</Author>
7+ <Description>Create public method double named</Description>
8+ <Shortcut>_mdouble</Shortcut>
9+ </Header>
10+ <Snippet>
11+ <Code Language="CSharp">
12+ <![CDATA[public double $Name$($params$) {
13+ $content$
14+ }]]>
15+ </Code>
16+ <Declarations>
17+ <Literal>
18+ <ID>Name</ID>
19+ <ToolTip>Enter the name of the method.</ToolTip>
20+ <Default>Method</Default>
21+ </Literal>
22+ <Literal>
23+ <ID>content</ID>
24+ <ToolTip>Content of the method.</ToolTip>
25+ <Default>throw new NotImplementedException();</Default>
26+ </Literal>
27+ <Literal>
28+ <ID>params</ID>
29+ <ToolTip>Method parameters.</ToolTip>
30+ <Default></Default>
31+ </Literal>
32+ </Declarations>
33+ </Snippet>
34+ </CodeSnippet>
35+ </CodeSnippets>
Original file line number Diff line number Diff line change 1+ <?xml version="1.0" encoding="utf-8"?>
2+ <CodeSnippets xmlns="http://schemas.microsoft.com/VisualStudio/2005/CodeSnippet">
3+ <CodeSnippet Format="1.0.0">
4+ <Header>
5+ <Title>_mdecimal</Title>
6+ <Author>brunomoura.dev</Author>
7+ <Description>Create public method decimal named</Description>
8+ <Shortcut>_mdecimal</Shortcut>
9+ </Header>
10+ <Snippet>
11+ <Code Language="CSharp">
12+ <![CDATA[public double $Name$($params$) {
13+ $content$
14+ }]]>
15+ </Code>
16+ <Declarations>
17+ <Literal>
18+ <ID>Name</ID>
19+ <ToolTip>Enter the name of the method.</ToolTip>
20+ <Default>Method</Default>
21+ </Literal>
22+ <Literal>
23+ <ID>content</ID>
24+ <ToolTip>Content of the method.</ToolTip>
25+ <Default>throw new NotImplementedException();</Default>
26+ </Literal>
27+ <Literal>
28+ <ID>params</ID>
29+ <ToolTip>Method parameters.</ToolTip>
30+ <Default></Default>
31+ </Literal>
32+ </Declarations>
33+ </Snippet>
34+ </CodeSnippet>
35+ </CodeSnippets>
Original file line number Diff line number Diff line change 1+ <?xml version="1.0" encoding="utf-8"?>
2+ <CodeSnippets xmlns="http://schemas.microsoft.com/VisualStudio/2005/CodeSnippet">
3+ <CodeSnippet Format="1.0.0">
4+ <Header>
5+ <Title>_mi</Title>
6+ <Author>brunomoura.dev</Author>
7+ <Description>Create public method int named</Description>
8+ <Shortcut>_mi</Shortcut>
9+ </Header>
10+ <Snippet>
11+ <Code Language="CSharp">
12+ <![CDATA[public int $Name$($params$) {
13+ $content$
14+ }]]>
15+ </Code>
16+ <Declarations>
17+ <Literal>
18+ <ID>Name</ID>
19+ <ToolTip>Enter the name of the method.</ToolTip>
20+ <Default>Method</Default>
21+ </Literal>
22+ <Literal>
23+ <ID>content</ID>
24+ <ToolTip>Content of the method.</ToolTip>
25+ <Default>throw new NotImplementedException();</Default>
26+ </Literal>
27+ <Literal>
28+ <ID>params</ID>
29+ <ToolTip>Method parameters.</ToolTip>
30+ <Default></Default>
31+ </Literal>
32+ </Declarations>
33+ </Snippet>
34+ </CodeSnippet>
35+ </CodeSnippets>
Original file line number Diff line number Diff line change 1+ <?xml version="1.0" encoding="utf-8"?>
2+ <CodeSnippets xmlns="http://schemas.microsoft.com/VisualStudio/2005/CodeSnippet">
3+ <CodeSnippet Format="1.0.0">
4+ <Header>
5+ <Title>_mstr</Title>
6+ <Author>brunomoura.dev</Author>
7+ <Description>Create public method string named</Description>
8+ <Shortcut>_mstr</Shortcut>
9+ </Header>
10+ <Snippet>
11+ <Code Language="CSharp">
12+ <![CDATA[public string $Name$($params$) {
13+ $content$
14+ }]]>
15+ </Code>
16+ <Declarations>
17+ <Literal>
18+ <ID>Name</ID>
19+ <ToolTip>Enter the name of the method.</ToolTip>
20+ <Default>Method</Default>
21+ </Literal>
22+ <Literal>
23+ <ID>content</ID>
24+ <ToolTip>Content of the method.</ToolTip>
25+ <Default>throw new NotImplementedException();</Default>
26+ </Literal>
27+ <Literal>
28+ <ID>params</ID>
29+ <ToolTip>Method parameters.</ToolTip>
30+ <Default></Default>
31+ </Literal>
32+ </Declarations>
33+ </Snippet>
34+ </CodeSnippet>
35+ </CodeSnippets>
Original file line number Diff line number Diff line change 1+ <?xml version="1.0" encoding="utf-8"?>
2+ <CodeSnippets xmlns="http://schemas.microsoft.com/VisualStudio/2005/CodeSnippet">
3+ <CodeSnippet Format="1.0.0">
4+ <Header>
5+ <Title>_mv</Title>
6+ <Author>brunomoura.dev</Author>
7+ <Description>Create public method void named</Description>
8+ <Shortcut>_mv</Shortcut>
9+ </Header>
10+ <Snippet>
11+ <Code Language="CSharp">
12+ <![CDATA[public void $Name$($params$) {
13+ $content$
14+ }]]>
15+ </Code>
16+ <Declarations>
17+ <Literal>
18+ <ID>Name</ID>
19+ <ToolTip>Enter the name of the method.</ToolTip>
20+ <Default>Method</Default>
21+ </Literal>
22+ <Literal>
23+ <ID>content</ID>
24+ <ToolTip>Content of the method.</ToolTip>
25+ <Default>throw new NotImplementedException();</Default>
26+ </Literal>
27+ <Literal>
28+ <ID>params</ID>
29+ <ToolTip>Method parameters.</ToolTip>
30+ <Default></Default>
31+ </Literal>
32+ </Declarations>
33+ </Snippet>
34+ </CodeSnippet>
35+ </CodeSnippets>
Original file line number Diff line number Diff line change 1+ <?xml version="1.0" encoding="utf-8"?>
2+ <CodeSnippets xmlns="http://schemas.microsoft.com/VisualStudio/2005/CodeSnippet">
3+ <CodeSnippet Format="1.0.0">
4+ <Header>
5+ <Title>_mb</Title>
6+ <Author>brunomoura.dev</Author>
7+ <Description>Create public method void named</Description>
8+ <Shortcut>_mb</Shortcut>
9+ </Header>
10+ <Snippet>
11+ <Code Language="CSharp">
12+ <![CDATA[public bool $Name$($params$) {
13+ $content$
14+ }]]>
15+ </Code>
16+ <Declarations>
17+ <Literal>
18+ <ID>Name</ID>
19+ <ToolTip>Enter the name of the method.</ToolTip>
20+ <Default>Method</Default>
21+ </Literal>
22+ <Literal>
23+ <ID>content</ID>
24+ <ToolTip>Content of the method.</ToolTip>
25+ <Default>throw new NotImplementedException();</Default>
26+ </Literal>
27+ <Literal>
28+ <ID>params</ID>
29+ <ToolTip>Method parameters.</ToolTip>
30+ <Default></Default>
31+ </Literal>
32+ </Declarations>
33+ </Snippet>
34+ </CodeSnippet>
35+ </CodeSnippets>
You can’t perform that action at this time.
0 commit comments