Using core service how can we check if a field allow multiple values, below is the code I'm using to get the type of field:-
SchemaFieldsData fields = client.ReadSchemaFields(schemaTCMURI, true, new ReadOptions());
foreach (var field in fields.MetadataFields)
{
if (field is SingleLineTextFieldDefinitionData)
{
// some code
}
else if (field is MultiLineTextFieldDefinitionData)
{
// this will check only if field is multiline not multi valued }
}
Please suggest.