SenseNet.ContentRepository.Storage.Schema.SchemaRoot.GetNextMapping C# (CSharp) Метод

GetNextMapping() приватный Метод

private GetNextMapping ( DataType dataType ) : int
dataType DataType
Результат int
		private int GetNextMapping(DataType dataType)
		{
			List<bool> usedSlots = new List<bool>();

			foreach (PropertyType propType in this.PropertyTypes)
			{
				if (propType.DataType == dataType && !propType.IsContentListProperty)
				{
					while (usedSlots.Count <= propType.Mapping)
						usedSlots.Add(false);
					usedSlots[propType.Mapping] = true;
				}
			}
			usedSlots.Add(false);
			for (int i = 0; i < usedSlots.Count; i++)
				if (!usedSlots[i])
					return i;

			throw new InvalidSchemaException("GetNextMapping");
		}
		private bool IsUsedPropertyType(PropertyType propertyType)