code_junkie

C# class separation into a header and a .cs file

Nov 11th, 2011
123
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.65 KB | None | 0 0
  1. public interface IFoo
  2. {
  3. int DoFoo();
  4. }
  5.  
  6. pubic class Foo : IFoo
  7. {
  8. public int DoFoo()
  9. {
  10. return 1;
  11. }
  12. }
  13.  
  14. public sealed class Cache : IEnumerable
  15. {
  16. // Fields
  17. private CacheInternal _cacheInternal;
  18. public static readonly DateTime NoAbsoluteExpiration;
  19. public static readonly TimeSpan NoSlidingExpiration;
  20.  
  21. // Methods
  22. static Cache();
  23. [SecurityPermission(SecurityAction.Demand, Unrestricted=true)]
  24. public Cache();
  25. internal Cache(int dummy);
  26. public object Add(string key, object value, CacheDependency dependencies, DateTime absoluteExpiration, TimeSpan slidingExpiration, CacheItemPriority priority, CacheItemRemovedCallback onRemoveCallback);
  27. public object Get(string key);
  28. internal object Get(string key, CacheGetOptions getOptions);
  29. public IDictionaryEnumerator GetEnumerator();
  30. public void Insert(string key, object value);
  31. public void Insert(string key, object value, CacheDependency dependencies);
  32. public void Insert(string key, object value, CacheDependency dependencies, DateTime absoluteExpiration, TimeSpan slidingExpiration);
  33. public void Insert(string key, object value, CacheDependency dependencies, DateTime absoluteExpiration, TimeSpan slidingExpiration, CacheItemPriority priority, CacheItemRemovedCallback onRemoveCallback);
  34. public object Remove(string key);
  35. internal void SetCacheInternal(CacheInternal cacheInternal);
  36. IEnumerator IEnumerable.GetEnumerator();
  37.  
  38. // Properties
  39. public int Count { get; }
  40. public long EffectivePercentagePhysicalMemoryLimit { get; }
  41. public long EffectivePrivateBytesLimit { get; }
  42. public object this[string key] { get; set; }
  43. }
Add Comment
Please, Sign In to add comment