Esempio n. 1
0
        IMethod IGenericMethodInfo.ConstructMethod(params IType[] arguments)
        {
            IMethod constructedMethod = null;

            if (!_constructedMethods.TryGetValue(arguments, out constructedMethod))
            {
                constructedMethod = new GenericConstructedMethod(this, arguments);
                _constructedMethods.Add(arguments, constructedMethod);
            }
            return(constructedMethod);
        }
Esempio n. 2
0
		public IMethod ConstructMethod(IType[] arguments)
		{
			IMethod constructed;
			if (!_constructedMethods.TryGetValue(arguments, out constructed))
			{
				constructed = new GenericConstructedMethod(this, arguments);
				_constructedMethods.Add(arguments, constructed);
			}
			
			return constructed;
		}