Format:
Recent snippets matching tags of resharper
<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>
220 Views
no comments
public class ErrorModel : IEnumerable<string> { public IEnumerator<string> GetEnumerator() { throw new NotImplementedException(); } IEnumerator IEnumerable.GetEnumerator() { return GetEnumerator();
25 Views
no comments
[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; }
155 Views
no comments
syntax: glob Obj obj Bin bin *.user *.suo *.Cache *.cache *.bak
227 Views
no comments
foreach (var group in groups) { if (group.AllowsPermission(permissionType)) { cache.Put(cacheKey, new List<bool> {true}); return true; } }
94 Views
no comments
<TemplatesExport family="Live Templates"> <Template uid="9860a3ff-f597-476b-bb22-88e8c6d13244" shortcut="taf" description="Test with Assert.Fail" text="[Test]
public void $Action$_$Scenario$_$Result$()
{
 Assert.Fail();
}
" 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" />
117 Views
no comments
Subscribe
Discuss
What's new
What is it
New Snippet
Recent Snippets
My Snippets
Web Code
Search
