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

Method Register

csharp/src/Fory/TypeResolver.cs:288–294  ·  view source on GitHub ↗
(Type type, uint id, TypeInfo? explicitTypeInfo = null)

Source from the content-addressed store, hash-verified

286 }
287
288 internal void Register(Type type, uint id, TypeInfo? explicitTypeInfo = null)
289 {
290 TypeInfo typeInfo = GetOrCreateTypeInfo(type, explicitTypeInfo).WithTypeIdRegistration(id);
291 _typeInfos.Set(TypeMapKey.Get(type), typeInfo);
292 _byUserTypeId[id] = typeInfo;
293 InvalidateFinalizedVersion();
294 }
295
296 internal static (string NamespaceName, string TypeName) SplitTypeName(string name)
297 {

Callers

nothing calls this directly

Calls 5

SetMethod · 0.45
GetMethod · 0.45
EncodeMethod · 0.45

Tested by

no test coverage detected