private void InitializeCachingContext() { _cachingContext = TrackedCachingContexts.GetOrCreate(this); if (IsInitializedForReflectionSerializer) { _cachingContext.Options.IsInitializedForReflectionSerializer = true; } }
private void InitializeCachingContext() { _isLockedInstance = true; _cachingContext = TrackedCachingContexts.GetOrCreate(this); }
private CachingContext?GetCachingContext() { Debug.Assert(IsImmutable); return(_cachingContext ??= TrackedCachingContexts.GetOrCreate(this)); }
private void InitializeCachingContext() { _cachingContext = TrackedCachingContexts.GetOrCreate(this); }