| 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 | { |