码迷,mamicode.com
首页 > 其他好文 > 详细

Cnic.Snippet

时间:2014-05-21 17:56:15      阅读:175      评论:0      收藏:0      [点我收藏+]

标签:des   style   blog   class   c   code   

bubuko.com,布布扣
<?xml version="1.0" encoding="utf-8"?>
<CodeSnippets xmlns="http://schemas.microsoft.com/VisualStudio/2005/CodeSnippet">
    <CodeSnippet Format="1.0.0">
        <Header>
            <Title>usingSR</Title>
            <Shortcut>usingSR</Shortcut>
            <Description>StreamReader 循环的代码段</Description>
            <Author>Microsoft Corporation</Author>
            <SnippetTypes>
                <SnippetType>Expansion</SnippetType>
                <SnippetType>SurroundsWith</SnippetType>
            </SnippetTypes>
        </Header>
        <Snippet>
            <Declarations>
                <Literal>
                    <ID>path</ID>
                    <ToolTip>路径</ToolTip>
                    <Default>@""</Default>
                </Literal>
            </Declarations>
            <Code Language="csharp"><![CDATA[
            using (StreamReader sr = new StreamReader($path$))
            {
                string line = sr.ReadLine();
                while (line != null)
                {
                    $end$
                    line = sr.ReadLine();
                }
            }]]>
            </Code>
        </Snippet>
    </CodeSnippet>
</CodeSnippets>
bubuko.com,布布扣
bubuko.com,布布扣
<?xml version="1.0" encoding="utf-8"?>
<CodeSnippets xmlns="http://schemas.microsoft.com/VisualStudio/2005/CodeSnippet">
    <CodeSnippet Format="1.0.0">
        <Header>
            <Title>usingSW</Title>
            <Shortcut>usingSW</Shortcut>
            <Description>StreamWriter 循环的代码段</Description>
            <Author>Microsoft Corporation</Author>
            <SnippetTypes>
                <SnippetType>Expansion</SnippetType>
                <SnippetType>SurroundsWith</SnippetType>
            </SnippetTypes>
        </Header>
        <Snippet>
            <Declarations>
                <Literal>
                    <ID>path</ID>
                    <ToolTip>路径</ToolTip>
                    <Default>@""</Default>
                </Literal>
                <Literal>
                    <ID>msg</ID>
                    <ToolTip>msg</ToolTip>
                    <Default>""</Default>
                </Literal>
            </Declarations>
            <Code Language="csharp"><![CDATA[
            using (StreamWriter sw = new StreamWriter($path$)
            {
                sw.WriteLine($msg$);
                $end$
            }]]>
            </Code>
        </Snippet>
    </CodeSnippet>
</CodeSnippets>
bubuko.com,布布扣

 

Cnic.Snippet,布布扣,bubuko.com

Cnic.Snippet

标签:des   style   blog   class   c   code   

原文地址:http://www.cnblogs.com/CodeBase/p/3740337.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!