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

Method ValidateSplitTypeName

csharp/src/Fory/TypeResolver.cs:315–328  ·  view source on GitHub ↗
(string namespaceName, string typeName)

Source from the content-addressed store, hash-verified

313 }
314
315 internal static void ValidateSplitTypeName(string namespaceName, string typeName)
316 {
317 ArgumentNullException.ThrowIfNull(namespaceName);
318 ArgumentNullException.ThrowIfNull(typeName);
319 if (typeName.Length == 0)
320 {
321 throw new ArgumentException("typeName must not be empty", nameof(typeName));
322 }
323
324 if (typeName.Contains(".", StringComparison.Ordinal))
325 {
326 throw new ArgumentException("typeName must not contain '.'", nameof(typeName));
327 }
328 }
329
330 internal void Register(Type type, string namespaceName, string typeName, TypeInfo? explicitTypeInfo = null)
331 {

Callers 2

RegisterMethod · 0.80
RegisterMethod · 0.80

Calls 1

ContainsMethod · 0.45

Tested by

no test coverage detected