You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
14 lines
306 B
14 lines
306 B
using System.Reflection;
|
|
using Connected.Caching.Annotations;
|
|
using Connected.Interop;
|
|
|
|
namespace Connected.Caching;
|
|
|
|
public static class CachingExtensions
|
|
{
|
|
public static PropertyInfo? GetCacheKeyProperty(object instance)
|
|
{
|
|
return Properties.GetPropertyAttribute<CacheKeyAttribute>(instance);
|
|
}
|
|
}
|