public Parameter(ParameterReference parameterReference, ComponentCache componentCache) : base(parameterReference.ParameterType, componentCache) { Contract.Requires<ArgumentNullException>(parameterReference != null); parameter = parameterReference.Resolve(); cache = componentCache; }
public Parameter(ParameterDefinition parameterDefinition, ComponentCache componentCache) : base(parameterDefinition.ParameterType, componentCache) { Contract.Requires<ArgumentNullException>(parameterDefinition != null); parameter = parameterDefinition; cache = componentCache; }
public Method(MethodDefinition methodDefinition, ComponentCache componentCache) { Contract.Requires<ArgumentNullException>(methodDefinition != null); Contract.Requires<ArgumentNullException>(componentCache != null); method = methodDefinition; cache = componentCache; }
public Method(MethodReference methodReference, ComponentCache componentCache) { Contract.Requires<ArgumentNullException>(methodReference != null); Contract.Requires<ArgumentNullException>(componentCache != null); method = methodReference.Resolve(); cache = componentCache; }