示例#1
0
		private bool HasDuplicates (Vector2[] vertices)
		{
			var duplicateKeys = vertices.GroupBy (x => x)
				.Where (group => group.Count () > 1)
				.Select (group => group.Key);
			return duplicateKeys.Count () != 0;
		}