Ejemplo n.º 1
0
		static MethodDefinition FindMethod (TypeDefinition type, string signature)
		{
			if (!type.HasMethods)
				return null;

			foreach (MethodDefinition meth in type.Methods)
				if (signature == ResolveFromXmlStep.GetMethodSignature (meth, includeGenericParameters: true))
					return meth;

			return null;
		}
Ejemplo n.º 2
0
        protected override void Process()
        {
            if (_linkerDescriptors.Any())
            {
                foreach (var def in _linkerDescriptors)
                {
                    var step = new ResolveFromXmlStep(new XPathDocument(def));

                    Context.Pipeline.AddStepAfter(typeof(TypeMapStep), step);

                    Context.LogMessage($"Processing explicit linker descriptor: {def}");
                }
            }
        }