コード例 #1
0
        public void GenericGetEnforcesDataType()
        {
            Locator         innerLocator = new Locator();
            ReadOnlyLocator locator      = new ReadOnlyLocator(innerLocator);

            innerLocator.Add(1, 2);

            locator.Get <string>(1);
        }
コード例 #2
0
        public void GenericGetWithSearchModeEnforcesDataType()
        {
            Locator         innerLocator = new Locator();
            ReadOnlyLocator locator      = new ReadOnlyLocator(innerLocator);

            innerLocator.Add(1, 2);

            locator.Get <string>(1, SearchMode.Local);
        }
コード例 #3
0
        public void GenericGetEnforcesDataType()
        {
            Locator innerLocator = new Locator();
            ReadOnlyLocator locator = new ReadOnlyLocator(innerLocator);

            innerLocator.Add(1, 2);

            locator.Get<string>(1);
        }
コード例 #4
0
		public void GenericGetWithSearchModeEnforcesDataType()
		{
			Locator innerLocator = new Locator();
			ReadOnlyLocator locator = new ReadOnlyLocator(innerLocator);

			innerLocator.Add(1, 2);

			locator.Get<string>(1, SearchMode.Local);
		}