Exemplo n.º 1
0
 public ExtractResourceRunInvoker(IRunInvoker invoker, ExtractResourceAttribute attribute)
     : base(invoker)
 {
     if (attribute.Type == null)
     {
         MethodRunInvoker methodInvoker = invoker as MethodRunInvoker;
         if (methodInvoker != null)
         {
             attribute.Type = methodInvoker.Method.DeclaringType;
         }
     }
     this.attribute = attribute;
 }
Exemplo n.º 2
0
			public ExtractResourceRunInvoker(IRunInvoker invoker, ExtractResourceAttribute attribute)
				: base(invoker)
			{
                if (attribute.Type == null)
                {
                    MethodRunInvoker methodInvoker = invoker as MethodRunInvoker;
                    if (methodInvoker != null)
                        attribute.Type = methodInvoker.Method.DeclaringType;
                }
				this.attribute = attribute;
			}