Welcome To Snipplr


Everyone's Recent C# Snippets



1 ... 7 8 9 10 11 ... 16
A base class for very simple value converters in WPF, Windows Phone 7 and Silverlight.
1 1425 posted 15 years ago by jacob4u2
Add this code to your App.xaml.cs inside your App class to enable a static property that will give you the current theme at runtime.
0 1413 posted 15 years ago by jacob4u2
Remove breaklines / html formatting
2 1656 posted 15 years ago by derekholmes
1 1750 posted 15 years ago by jermeyz
1 1475 posted 15 years ago by cabrel
Old school or simple way of querying data without a DAL.
1 1451 posted 15 years ago by myke
1 1184 posted 15 years ago by housecor
0 1137 posted 15 years ago by housecor
So if the ID contains the word Spouse, do x.
1 1479 posted 15 years ago by housecor
1 1286 posted 15 years ago by housecor
A very liberal validation of phone number. Assures there are at least 10 digits in there somewhere.
1 1319 posted 15 years ago by housecor
2 1841 posted 15 years ago by cabrel
0 1030 posted 15 years ago by cabrel
2 1617 posted 15 years ago by jx_boi
2 1543 posted 15 years ago by jx_boi
Enables to convert types using generics. Simple and clean.
2 1565 posted 15 years ago by wallybh
Class to shorten text. For example for an article where people can click read more to read the whole article.
1 1350 posted 15 years ago by Fogh
Add this code to your Global.asax in your ASP.NET project, in the \"Application_BeginRequest\" event.
1 1479 posted 15 years ago by Fogh
1 1329 posted 15 years ago by skhan
1 3536 posted 15 years ago by gilbitron
Using the CssRegistration control is the proper way to register CSS in a SharePoint master page/layout page, but it has drawbacks. Namely, no matter what order you put them on the page the server loads them in a seemingly arbitrary order, making it...
2 1676 posted 15 years ago by rumremix
2 1494 posted 15 years ago by jiewmeng
1 2310 posted 15 years ago by scholli
1 1602 posted 15 years ago by jmcd
1 ... 7 8 9 10 11 ... 16