Skip to content

Commit 91595d0

Browse files
author
Bruno Moura
committed
Resolução de bug gerando double quando acionado decimal no retorno do
método Adição de novos tipos de retorno: - uint - char - float - long - IEnumerable - IDictionary
1 parent 2cb2a8a commit 91595d0

File tree

11 files changed

+343
-3
lines changed

11 files changed

+343
-3
lines changed

snippets/10.snippet

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
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>_mchar</Title>
6+
<Author>brunomoura.dev</Author>
7+
<Description>Create public method char</Description>
8+
<Shortcut>_mchar</Shortcut>
9+
</Header>
10+
<Snippet>
11+
<Code Language="CSharp">
12+
<![CDATA[public char $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>

snippets/11.snippet

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
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>_mlong</Title>
6+
<Author>brunomoura.dev</Author>
7+
<Description>Create public method long</Description>
8+
<Shortcut>_mlong</Shortcut>
9+
</Header>
10+
<Snippet>
11+
<Code Language="CSharp">
12+
<![CDATA[public long $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>

snippets/12.snippet

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
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>_muint</Title>
6+
<Author>brunomoura.dev</Author>
7+
<Description>Create public method uint</Description>
8+
<Shortcut>_muint</Shortcut>
9+
</Header>
10+
<Snippet>
11+
<Code Language="CSharp">
12+
<![CDATA[public uint $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>

snippets/13.snippet

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
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>_mbyte</Title>
6+
<Author>brunomoura.dev</Author>
7+
<Description>Create public method byte</Description>
8+
<Shortcut>_mbyte</Shortcut>
9+
</Header>
10+
<Snippet>
11+
<Code Language="CSharp">
12+
<![CDATA[public byte $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>

snippets/14.snippet

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
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>_mfloat</Title>
6+
<Author>brunomoura.dev</Author>
7+
<Description>Create public method float</Description>
8+
<Shortcut>_mfloat</Shortcut>
9+
</Header>
10+
<Snippet>
11+
<Code Language="CSharp">
12+
<![CDATA[public float $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>

snippets/15.snippet

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
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>_mobj</Title>
6+
<Author>brunomoura.dev</Author>
7+
<Description>Create public method object</Description>
8+
<Shortcut>_mobj</Shortcut>
9+
</Header>
10+
<Snippet>
11+
<Code Language="CSharp">
12+
<![CDATA[public object $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>

snippets/16.snippet

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
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>_mdy</Title>
6+
<Author>brunomoura.dev</Author>
7+
<Description>Create public method dynamic</Description>
8+
<Shortcut>_mdy</Shortcut>
9+
</Header>
10+
<Snippet>
11+
<Code Language="CSharp">
12+
<![CDATA[public dynamic $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>

snippets/17.snippet

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
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>_mien</Title>
6+
<Author>brunomoura.dev</Author>
7+
<Description>Create public method IEnumerable</Description>
8+
<Shortcut>_mien</Shortcut>
9+
</Header>
10+
<Snippet>
11+
<Code Language="CSharp">
12+
<![CDATA[public IEnumerable<$typeEnum$> $Name$($params$) {
13+
$content$
14+
}]]>
15+
</Code>
16+
<Declarations>
17+
<Literal>
18+
<ID>typeEnum</ID>
19+
<ToolTip>Type IEnumerable</ToolTip>
20+
<Default>object</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+
<Imports>
39+
<Import>
40+
<Namespace>System.Collections.Generic</Namespace>
41+
</Import>
42+
</Imports>
43+
</Snippet>
44+
</CodeSnippet>
45+
</CodeSnippets>

snippets/18.snippet

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
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>_mdic</Title>
6+
<Author>brunomoura.dev</Author>
7+
<Description>Create public method IDictionary</Description>
8+
<Shortcut>_mdic</Shortcut>
9+
</Header>
10+
<Snippet>
11+
<Code Language="CSharp">
12+
<![CDATA[public IDictionary<$k$, $v$> $Name$($params$) {
13+
$content$
14+
}]]>
15+
</Code>
16+
<Declarations>
17+
<Literal>
18+
<ID>k</ID>
19+
<ToolTip>Type Key</ToolTip>
20+
<Default>object</Default>
21+
</Literal>
22+
<Literal>
23+
<ID>v</ID>
24+
<ToolTip>Type Value</ToolTip>
25+
<Default>object</Default>
26+
</Literal>
27+
<Literal>
28+
<ID>Name</ID>
29+
<ToolTip>Enter the name of the method.</ToolTip>
30+
<Default>Method</Default>
31+
</Literal>
32+
<Literal>
33+
<ID>content</ID>
34+
<ToolTip>Content of the method.</ToolTip>
35+
<Default>throw new NotImplementedException();</Default>
36+
</Literal>
37+
<Literal>
38+
<ID>params</ID>
39+
<ToolTip>Method parameters.</ToolTip>
40+
<Default></Default>
41+
</Literal>
42+
</Declarations>
43+
<Imports>
44+
<Import>
45+
<Namespace>System.Collections.Generic</Namespace>
46+
</Import>
47+
</Imports>
48+
</Snippet>
49+
</CodeSnippet>
50+
</CodeSnippets>

snippets/5.snippet

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
</Header>
1010
<Snippet>
1111
<Code Language="CSharp">
12-
<![CDATA[public double $Name$($params$) {
12+
<![CDATA[public decimal $Name$($params$) {
1313
$content$
1414
}]]>
1515
</Code>

0 commit comments

Comments
 (0)