/// <summary> /// Checks if the new name of the attribute already exists /// </summary> /// <param name="myNewAttributeName"></param> /// <param name="vertexType"></param> /// <returns></returns> private static bool CheckNewName(string myNewAttributeName, IVertexType vertexType) { if (myNewAttributeName != null) { return vertexType.GetKinsmenVertexTypesAndSelf() .Select(aVertexType => aVertexType.GetAttributeDefinitions(false).ToArray()) .All(attributesOfCurrentVertexType => !attributesOfCurrentVertexType.Any(_ => _.Name == myNewAttributeName)); } return true; }