New Snippet New Snippet Recent Snippets Recent Snippets My Snippets My Snippets Web Code Search Snippets Search
Sign inor Register
Format:
Recent snippets matching tags of resharper
XML
<CustomPatterns>
  <Pattern Severity="SUGGESTION">
    <Comment>Use method Any()</Comment>
    <ReplacePattern>$seq$.Any()</ReplacePattern>
    <SearchPattern><![CDATA[$seq$.Count() > 0]]></SearchPattern>
    <Params />
    <Placeholders>
      <ExpressionPlaceholder Name="seq" ExpressionType="System.Collections.IEnumerable" ExactType="False" />
    </Placeholders>
  </Pattern>
by Jon Erickson   April 07, 2010 @ 8:51am
220 Views
no comments
 
C#
public class ErrorModel : IEnumerable<string>
{
    public IEnumerator<string> GetEnumerator()
    {
        throw new NotImplementedException();
    }
 
    IEnumerator IEnumerable.GetEnumerator()
    {
        return GetEnumerator();
by Jeremy Brayton   March 17, 2010 @ 9:01am
25 Views
no comments
 
C#
[ContextAction(Group = "C#", Name = "ConvertSpacesToUnderscore", Description = "Adds context action to convert spaces in method names to underscore")]
public class ConvertSpacesToUnderscore : BulbItemImpl, IContextAction
{
    readonly ICSharpContextActionDataProvider _provider;
 
    public ConvertSpacesToUnderscore(ICSharpContextActionDataProvider provider)
    {
        _provider = provider;
    }
by Geir-Tore Lindsve   February 03, 2010 @ 1:05am
155 Views
no comments
 
syntax: glob
Obj
obj
Bin
bin
*.user
*.suo
*.Cache
*.cache
*.bak
by Andy Sherwood   January 26, 2010 @ 8:48pm
227 Views
no comments
 
C#
foreach (var group in groups)
                {
                    if (group.AllowsPermission(permissionType))
                    {
                        cache.Put(cacheKey, new List<bool> {true});
                        return true;
                    }
                }
 
by Steven Burman   December 23, 2009 @ 4:48pm
94 Views
no comments
 
XML
<TemplatesExport family="Live Templates">
  <Template uid="9860a3ff-f597-476b-bb22-88e8c6d13244" shortcut="taf" description="Test with Assert.Fail" text="[Test]&#xD;&#xA;public void $Action$_$Scenario$_$Result$()&#xD;&#xA;{&#xD;&#xA;    Assert.Fail();&#xD;&#xA;}&#xD;&#xA;" reformat="True" shortenQualifiedReferences="True">
    <Context>
      <CSharpContext context="TypeMember" minimumLanguageVersion="2.0" />
    </Context>
    <Categories />
    <Variables>
      <Variable name="Action" expression="" initialRange="0" />
      <Variable name="Scenario" expression="" initialRange="0" />
      <Variable name="Result" expression="" initialRange="0" />
by Andy Sherwood   August 27, 2009 @ 9:54am
Tags: tdd, resharper
117 Views
no comments
 
brought to you by:
West Wind Techologies


If you find this site useful and use it frequently please consider making a donation to support this free service.
Donate