Popular Posts
-
Kendo UI applying SUM in footer template kendo ui - KendoUI: Grid Summary values in Footer - Stack Overflow : ", footerTemplate:...
-
MVC grid example ASP.NET MVC Flexigrid sample - CodeProject : 'via Blog this'
-
A possible way of handling distributed transaction for multiple contexts without alleviation to MSDTC??? c# - Entity Framework - Using Trans...
Sunday, January 28, 2018
Generate insert script with exists
https://www.codeproject.com/Tips/1218208/Generate-Insert-scripts-of-Existing-Rows-with-if-E
Tuesday, January 2, 2018
sample cache
void Main()
{
// Testing only
var cache = new Cache<string>();
cache.Add("test", new CacheItem<string>());
}
public interface ICache<TValue>
{
void Add(string key, CacheItem<TValue> value);
}
public class Cache<TValue>: ICache<TValue>
{
public void Add(string key, CacheItem<TValue> value)
{
Console.WriteLine(key);
}
}
public class CacheItem<TValue>
{
}
// Define other methods and classes here
{
// Testing only
var cache = new Cache<string>();
cache.Add("test", new CacheItem<string>());
}
public interface ICache<TValue>
{
void Add(string key, CacheItem<TValue> value);
}
public class Cache<TValue>: ICache<TValue>
{
public void Add(string key, CacheItem<TValue> value)
{
Console.WriteLine(key);
}
}
public class CacheItem<TValue>
{
}
// Define other methods and classes here
Subscribe to:
Posts (Atom)