Cilador.Fody.InterfaceMixins.InterfaceMixinWeaver.Execute C# (CSharp) Méthode

Execute() public méthode

Executes the interface mixin command using the arguments passed into the constuctor.
public Execute ( ) : void
Résultat void
        public void Execute()
        {
            this.Target.Interfaces.Add(this.Target.Module.Import(this.InterfaceType));
            try
            {
                var graph = new CilGraphGetter().Get(this.Source);
                new CloningContext(graph, this.Source, this.Target).Execute();
            }
            catch(InvalidOperationException e)
            {
                throw new WeavingException(e.Message, e);
            }
        }