public void CheckSemantics(System.Collections.Generic.IEnumerable <IConceptInfo> concepts) { if (!(PropertyInfo.DataStructure is BrowseDataStructureInfo)) { throw new DslSyntaxException(string.Format( "'{0}' cannot be use on {1} ({2}). It may only be used on {3}.", this.GetKeywordOrTypeName(), PropertyInfo.DataStructure.GetKeywordOrTypeName(), PropertyInfo.GetUserDescription(), ConceptInfoHelper.GetKeywordOrTypeName(typeof(BrowseDataStructureInfo)))); } }
public void CheckSemantics(IDslModel existingConcepts) { if (!(PropertyInfo.DataStructure is BrowseDataStructureInfo)) { throw new DslSyntaxException($"'{this.GetKeywordOrTypeName()}' cannot be used" + $" on {PropertyInfo.DataStructure.GetKeywordOrTypeName()} ({PropertyInfo.GetUserDescription()})." + $" It may only be used on {ConceptInfoHelper.GetKeywordOrTypeName(typeof(BrowseDataStructureInfo))}."); } }