private static FLSlice TypeForDict(FLDict *dict) { var typeKey = FLSlice.Constant(Constants.ObjectTypeProperty); var type = NativeRaw.FLDict_Get(dict, typeKey); return(NativeRaw.FLValue_AsString(type)); }
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)); }