Пример #1
0
        public Parameter(ParameterReference parameterReference, ComponentCache componentCache) : base(parameterReference.ParameterType, componentCache)
        {
            Contract.Requires<ArgumentNullException>(parameterReference != null);

            parameter = parameterReference.Resolve();
            cache = componentCache;
        }
Пример #2
0
        public Parameter(ParameterDefinition parameterDefinition, ComponentCache componentCache) : base(parameterDefinition.ParameterType, componentCache)
        {
            Contract.Requires<ArgumentNullException>(parameterDefinition != null);

            parameter = parameterDefinition;
            cache = componentCache;
        }
Пример #3
0
        public Method(MethodDefinition methodDefinition, ComponentCache componentCache)
        {
            Contract.Requires<ArgumentNullException>(methodDefinition != null);
            Contract.Requires<ArgumentNullException>(componentCache != null);

            method = methodDefinition;
            cache = componentCache;
        }
Пример #4
0
        public Method(MethodReference methodReference, ComponentCache componentCache)
        {
            Contract.Requires<ArgumentNullException>(methodReference != null);
            Contract.Requires<ArgumentNullException>(componentCache != null);

            method = methodReference.Resolve();
            cache = componentCache;
        }