Пример #1
0
        public static void TransferData(SolutionItem source, SolutionItem target)
        {
            ItemSlnData data = (ItemSlnData)source.ExtendedProperties [typeof(ItemSlnData)];

            if (data != null)
            {
                target.ExtendedProperties [typeof(ItemSlnData)] = data;
            }
        }
Пример #2
0
        public static ItemSlnData ForItem(SolutionItem item)
        {
            ItemSlnData data = (ItemSlnData)item.ExtendedProperties [typeof(ItemSlnData)];

            if (data == null)
            {
                data = new ItemSlnData();
                item.ExtendedProperties [typeof(ItemSlnData)] = data;
            }
            return(data);
        }
Пример #3
0
		public static ItemSlnData ForItem (SolutionItem item)
		{
			ItemSlnData data = (ItemSlnData) item.ExtendedProperties [typeof(ItemSlnData)];
			if (data == null) {
				data = new ItemSlnData ();
				item.ExtendedProperties [typeof(ItemSlnData)] = data;
			}
			return data;
		}