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

Method CreateTypeMap

csharp/src/Fory/TypeResolver.cs:122–131  ·  view source on GitHub ↗
(params (Type Key, Type Value)[] entries)

Source from the content-addressed store, hash-verified

120 }
121
122 private static UInt64Map<Type> CreateTypeMap(params (Type Key, Type Value)[] entries)
123 {
124 UInt64Map<Type> map = new(entries.Length * 2);
125 foreach ((Type key, Type value) in entries)
126 {
127 map.Set(TypeMapKey.Get(key), value);
128 }
129
130 return map;
131 }
132
133 public Serializer<T> GetSerializer<T>()
134 {

Callers

nothing calls this directly

Calls 2

SetMethod · 0.45
GetMethod · 0.45

Tested by

no test coverage detected