SenseNet.ContentRepository.ContentList.SlotTable.SlotTable C# (CSharp) Method

SlotTable() public method

public SlotTable ( Dictionary bindings ) : System
bindings Dictionary
return System
			public SlotTable(Dictionary<string, List<string>> bindings)
			{
				_slotTable = new Dictionary<DataType, List<int>>();
				_currentSlots = new Dictionary<DataType, int>();
				foreach (DataType dataType in Enum.GetValues(typeof(DataType)))
				{
					_slotTable.Add(dataType, new List<int>());
					_currentSlots.Add(dataType, -1);
				}
				foreach (string key in bindings.Keys)
				{
					foreach (string binding in bindings[key])
					{
						DataType dataType;
						int ordinalNumber;
						ContentList.DecodeBinding(binding, out dataType, out ordinalNumber);
						_slotTable[dataType].Add(ordinalNumber);
					}
				}
			}
ContentList.SlotTable