<?xml version="1.0" encoding="utf-8"?>
<CodeSnippets
xmlns="http://schemas.microsoft.com/VisualStudio/2005/CodeSnippet">
<CodeSnippet Format="1.0.0">
<Header>
<Title>文字列がNull、空文字ならArgumentException</Title>
<Shortcut>chks</Shortcut>
</Header>
<Snippet>
<Declarations>
<Literal>
<ID>val</ID>
<ToolTip>変数名</ToolTip>
<Default>val</Default>
</Literal>
</Declarations>
<Code Language="VB"><![CDATA[If String.IsNullOrEmpty($val$) Then Throw New ArgumentException("文字列がNullまたは空です","$val$")]]></Code>
</Snippet>
</CodeSnippet>
</CodeSnippets>
最終更新:2013年09月21日 11:51