2 implementations of GetParameterCount
System.Private.DataContractSerialization (2)
System\Runtime\Serialization\DataContract.cs (2)
2290
public int
GetParameterCount
()
2410
int IGenericNameProvider.
GetParameterCount
()
2 references to GetParameterCount
System.Private.DataContractSerialization (2)
System\Runtime\Serialization\DataContract.cs (2)
1912
if (!int.TryParse(format.AsSpan(start, i - start), out int paramIndex) || paramIndex < 0 || paramIndex >= genericNameProvider.
GetParameterCount
())
1913
throw new InvalidDataContractException(SR.Format(SR.GenericParameterNotValid, format.Substring(start, i - start), genericNameProvider.GetGenericTypeName(), genericNameProvider.
GetParameterCount
() - 1));