MCPcopy Create free account
hub / github.com/apache/fory / TryGetLocalTypeInfo

Method TryGetLocalTypeInfo

csharp/src/Fory/TypeResolver.cs:1273–1289  ·  view source on GitHub ↗
(TypeMeta typeMeta, out TypeInfo typeInfo)

Source from the content-addressed store, hash-verified

1271 }
1272
1273 internal bool TryGetLocalTypeInfo(TypeMeta typeMeta, out TypeInfo typeInfo)
1274 {
1275 if (typeMeta.RegisterByName)
1276 {
1277 return _byTypeName.TryGetValue(
1278 (typeMeta.NamespaceName.Value, typeMeta.TypeName.Value),
1279 out typeInfo!);
1280 }
1281
1282 if (typeMeta.UserTypeId.HasValue)
1283 {
1284 return _byUserTypeId.TryGetValue(typeMeta.UserTypeId.Value, out typeInfo!);
1285 }
1286
1287 typeInfo = null!;
1288 return false;
1289 }
1290
1291 private static byte[] ReadBinary(ReadContext context)
1292 {

Callers 1

Calls 1

TryGetValueMethod · 0.45

Tested by

no test coverage detected