Skip to content

Instantly share code, notes, and snippets.

@jvanhoesen
Last active June 2, 2021 17:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jvanhoesen/73db60bd84e382e6bd22ca44f771ca89 to your computer and use it in GitHub Desktop.
Save jvanhoesen/73db60bd84e382e6bd22ca44f771ca89 to your computer and use it in GitHub Desktop.
Property declaration of AACache
private static CacheStaticInfo _staticInfo;
private static Type _pXCacheExtensionCollectionType;
protected static CacheStaticInfo StaticInfo
{
get
{
if (_staticInfo == null)
{
_staticInfo = _Initialize(false);
}
return _staticInfo;
}
}
protected static Type PXCacheExtensionCollectionType
{
get
{
if (_pXCacheExtensionCollectionType == null)
{
Assembly assembly = Assembly.Load("PX.Data");
_pXCacheExtensionCollectionType = assembly.GetType("PX.Data.PXCacheExtensionCollection");
}
return _pXCacheExtensionCollectionType;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment