This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Usage: | |
// private static readonly ILog Logger = new Logger(typeof(YOUR_CLASS_NAME)); | |
// | |
// In your method: | |
// Logger.Log("Application_Launching"); | |
public interface ILog | |
{ | |
void Log(string message, LogLevel logLevel = LogLevel.Info); | |
void LogFormat(string format, LogLevel logLevel = LogLevel.Info, params object[] parameters); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Net; | |
using System.Windows; | |
using System.Windows.Controls; | |
using System.Windows.Documents; | |
using System.Windows.Ink; | |
using System.Windows.Input; | |
using System.Windows.Media; | |
using System.Windows.Media.Animation; | |
using System.Windows.Shapes; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public interface ISettingsHelper | |
{ | |
T GetSetting<T>(string settingName, T defaultValue); | |
void UpdateSetting<T>(string settingName, T value); | |
} | |
public class SettingsHelper : ISettingsHelper | |
{ | |
private readonly IsolatedStorageSettings _settings = IsolatedStorageSettings.ApplicationSettings; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[TestMethod] | |
public void $MethodNameTest$() | |
{ | |
$END$ | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[TestInitialize] | |
public void TestInitialize() | |
{ | |
$END$ | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using Microsoft.VisualStudio.TestTools.UnitTesting; | |
$HEADER$namespace $NAMESPACE$ | |
{ | |
[TestClass] | |
public class $CLASS$ {$END$} | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System.Data.Linq; | |
using Microsoft.Phone.Data.Linq; | |
namespace MyNameSpace.Database | |
{ | |
public class MyDataContext : DataContext | |
{ | |
public MyDataContext(string connectionString) | |
: base(connectionString) | |
{ } |