コード例 #1
0
        private static FLSlice TypeForDict(FLDict *dict)
        {
            var typeKey = FLSlice.Constant(Constants.ObjectTypeProperty);
            var type    = NativeRaw.FLDict_Get(dict, typeKey);

            return(NativeRaw.FLValue_AsString(type));
        }
コード例 #2
0
        private static FLSlice TypeForDict(FLDict *dict, SharedStringCache sharedKeys)
        {
            var typeKey = FLSlice.Constant(Constants.ObjectTypeProperty);
            var type    = sharedKeys != null
                ? sharedKeys.GetDictValue(dict, typeKey)
                : NativeRaw.FLDict_Get(dict, typeKey);

            return(NativeRaw.FLValue_AsString(type));
        }