This repository was archived by the owner on Jul 15, 2023. It is now read-only.
File tree Expand file tree Collapse file tree 4 files changed +8
-8
lines changed
Microsoft.Research/ManagedContract.Setup/CSharpCodeSnippets Expand file tree Collapse file tree 4 files changed +8
-8
lines changed Original file line number Diff line number Diff line change 55 <SnippetTypes>
66 <SnippetType>Expansion</SnippetType>
77 </SnippetTypes>
8- <Title>Contract.Ensures(!String .IsNullOrEmpty(Contract.Result()))</Title>
8+ <Title>Contract.Ensures(!string .IsNullOrEmpty(Contract.Result()))</Title>
99 <Shortcut>cesn</Shortcut>
1010 <Description>Emits an 'ensures' clause specifying result not null or empty</Description>
1111 <Author>Jonathan de Halleux</Author>
1818 </Imports>
1919 <Declarations>
2020 </Declarations>
21- <Code Language="CSharp" Kind="method body"><![CDATA[Contract.Ensures(!String .IsNullOrEmpty(Contract.Result<string>()));
21+ <Code Language="CSharp" Kind="method body"><![CDATA[Contract.Ensures(!string .IsNullOrEmpty(Contract.Result<string>()));
2222$end$]]></Code>
2323 </Snippet>
2424 </CodeSnippet>
Original file line number Diff line number Diff line change 77 </SnippetTypes>
88 <Title>Contract.Invariant</Title>
99 <Shortcut>cisn</Shortcut>
10- <Description>Emits a 'Contract.Invariant' not String .IsNullOrEmpty clause</Description>
10+ <Description>Emits a 'Contract.Invariant' not string .IsNullOrEmpty clause</Description>
1111 <Author>Jonathan de Halleux</Author>
1212 </Header>
1313 <Snippet>
2525 </Function>
2626 </Object>
2727 </Declarations>
28- <Code Language="CSharp" Kind="method body"><![CDATA[Contract.Invariant(!String .IsNullOrEmpty($expression$));$end$]]></Code>
28+ <Code Language="CSharp" Kind="method body"><![CDATA[Contract.Invariant(!string .IsNullOrEmpty($expression$));$end$]]></Code>
2929 </Snippet>
3030 </CodeSnippet>
3131</CodeSnippets>
Original file line number Diff line number Diff line change 55 <SnippetTypes>
66 <SnippetType>Expansion</SnippetType>
77 </SnippetTypes>
8- <Title>Contract.Requires<ArgumentException>(!String .IsNullOrEmpty(..))</Title>
8+ <Title>Contract.Requires<ArgumentException>(!string .IsNullOrEmpty(..))</Title>
99 <Shortcut>cresn</Shortcut>
1010 <Description>Emits a 'requires with exception' not IsNullOrEmpty</Description>
1111 <Author>Jonathan de Halleux</Author>
2525 </Function>
2626 </Object>
2727 </Declarations>
28- <Code Language="CSharp" Kind="method body"><![CDATA[Contract.Requires<ArgumentException>(!String .IsNullOrEmpty($variable$));$end$]]></Code>
28+ <Code Language="CSharp" Kind="method body"><![CDATA[Contract.Requires<ArgumentException>(!string .IsNullOrEmpty($variable$));$end$]]></Code>
2929 </Snippet>
3030 </CodeSnippet>
3131</CodeSnippets>
Original file line number Diff line number Diff line change 55 <SnippetTypes>
66 <SnippetType>Expansion</SnippetType>
77 </SnippetTypes>
8- <Title>Contract.Requires(!String .IsNullOrEmpty(..))</Title>
8+ <Title>Contract.Requires(!string .IsNullOrEmpty(..))</Title>
99 <Shortcut>crsn</Shortcut>
1010 <Description>Emits a 'requires' not IsNullOrEmpty</Description>
1111 <Author>Jonathan de Halleux</Author>
2525 </Function>
2626 </Object>
2727 </Declarations>
28- <Code Language="CSharp" Kind="method body"><![CDATA[Contract.Requires(!String .IsNullOrEmpty($variable$));$end$]]></Code>
28+ <Code Language="CSharp" Kind="method body"><![CDATA[Contract.Requires(!string .IsNullOrEmpty($variable$));$end$]]></Code>
2929 </Snippet>
3030 </CodeSnippet>
3131</CodeSnippets>
You can’t perform that action at this time.
0 commit comments