XFE Git
XFE Studio Git
Git 首页 全局搜索
XFE 主站 文档 NuGet

XFEExtension.NetCore.VSIX

【VSIX】XFEExtension的Visual Studio扩展

公开
关注 0 Fork 0 Star 0
UTF-8
<?xml version="1.0" encoding="utf-8"?>
<CodeSnippets xmlns="http://schemas.microsoft.com/VisualStudio/2005/CodeSnippet">
  <CodeSnippet Format="1.0.1">
    <Header>
      <Title>acl</Title>
      <Shortcut>acl</Shortcut>
      <Description>Auto Config List Snippet</Description>
      <Author>XFEstudio</Author>
      <SnippetTypes>
        <SnippetType>Expansion</SnippetType>
      </SnippetTypes>
    </Header>
    <Snippet>
      <References>
        <Reference>
          <Assembly>XFEExtension.NetCore.AutoConfig</Assembly>
        </Reference>
      </References>
      <Imports>
        <Import>
          <Namespace>XFEExtension.NetCore.AutoConfig</Namespace>
        </Import>
      </Imports>
      <Declarations>
        <Literal>
          <ID>valuetype</ID>
          <ToolTip>List Value Type</ToolTip>
          <Default>int</Default>
        </Literal>
        <Literal>
          <ID>name</ID>
          <ToolTip>Config Name (start with small letter)</ToolTip>
          <Default>configField</Default>
        </Literal>
      </Declarations>
      <Code Language="csharp">
        <![CDATA[[ProfileProperty]
        [ProfilePropertyAddGet("Current.$name$.CurrentProfile = Current")]
        [ProfilePropertyAddGet("return Current.$name$")]
        private ProfileList<$valuetype$> $name$;$end$]]>
      </Code>
    </Snippet>
  </CodeSnippet>
</CodeSnippets>