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
Before | |
public class SimpleClass | |
{ | |
[LogParamsOnException(LogLevel.Info)] | |
void Method(string param1, int param2) | |
{ | |
//Do Stuff | |
} |
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
//Guard clauses / contracts omitted for berivity | |
//Thread safety not considered. | |
public interface IKeyValueStore | |
{ | |
void Add<T>(string key, T item); | |
void AddOrUpdate<T>(string key, T item); | |
bool Remove(string key); |
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
namespace WinPhoneKit.Storage | |
{ | |
using System; | |
using System.IO.IsolatedStorage; | |
public static class IsolatedStorage | |
{ | |
private static readonly IsolatedStorageSettings isolatedStorage = IsolatedStorageSettings.ApplicationSettings; | |
public static void Add<TEntity>(string key, TEntity entity) |