LiveTemplate for PropertyData

Topics: ReSharper test runner
Mar 14, 2010 at 7:18 AM

seems like you guys are missing live templates for property data for the below code. I think it should be added to the live templates also.

public static IEnumerable<object[]> EvenNumbers
{
    get
    {
        yield return new object[] { 0 };
        yield return new object[] { 2 };
    }
}

heres the xml code you need to import. The shortcut key is propd (property data).

<TemplatesExport family="Live Templates">
  <Template uid="e0dbf650-df9a-44f5-be92-6270b4576776" shortcut="propd" description="Property Data" text="public static System.Collections.Generic.IEnumerable&lt;object[]&gt; $PropertyName$&#xD;&#xA;{&#xD;&#xA; get&#xD;&#xA; {&#xD;&#xA;  $END$&#xD;&#xA; }&#xD;&#xA;}" reformat="True" shortenQualifiedReferences="True">
    <Context>
      <CSharpContext context="TypeMember" minimumLanguageVersion="2.0" />
    </Context>
    <Categories />
    <Variables>
      <Variable name="PropertyName" expression="" initialRange="0" />
    </Variables>
    <CustomProperties />
  </Template>
</TemplatesExport>