VB - Property With Region

By , 9/21/2010
(1 ratings)
Creates a VB.net Property with Region
<?xml version="1.0" encoding="utf-8"?>
<CodeSnippets xmlns="http://schemas.microsoft.com/VisualStudio/2005/CodeSnippet">
  <CodeSnippet Format="1.0.0">
      <Title>Property With Region</Title>
      <Description>VB.NET version of Mike's code snippet for property with region</Description>
      <HelpUrl />
      <Keywords />
      <References />
      <Imports />
        <Literal Editable="true">
          <Type />
          <ToolTip>Region Name</ToolTip>
        <Literal Editable="true">
          <Type />
          <ToolTip>Property type</ToolTip>
        <Literal Editable="true">
          <Type />
          <ToolTip>Property name</ToolTip>
        <Literal Editable="true">
          <Type />
          <ToolTip>The variable backing this property</ToolTip>
      <Code Language="vb" Kind="method body" Delimiter="$"><![CDATA[ 
  #Region "$region$"
  private $field$ as $type$

	Public Property $property$ As $type$
            Return $field$
        End Get
        Set(ByVal value As $type$)
            $field$ = value
        End Set
    End Property
  #End Region]]></Code>
Tagged with vb.net.



Log in, to comment!