private static TKey GetKey(bool isNativeType, byte keyType, BssmapAnalysisStack stack, byte valueByteCount)
        {
            if (keyType != staticKeyResolver.KeyType && isNativeType != staticKeyResolver.KeyIsNativeType)
            {
                return(BssomSerializationOperationException.UnexpectedCodeRead <TKey>());
            }

            return(staticKeyResolver.ReadMap2Key(stack.ToUlongs((byte)valueByteCount)));
        }
        private static TKey GetObjectKey(bool isNativeType, byte keyType, BssmapAnalysisStack stack, byte valueByteCount)
        {
            IBssMapKeyResolver convert = BssMapKeyResolverProvider.GetAndVertiyBssMapKeyResolver(isNativeType, keyType);

            return((TKey)convert.ReadMap2Key(stack.ToUlongs((byte)valueByteCount)));
        }