System.AppDomain.AppDomain.InvokeInDomainByID C# (CSharp) Méthode

InvokeInDomainByID() static private méthode

static private InvokeInDomainByID ( int domain_id, MethodInfo method, object obj, object args ) : object
domain_id int
method System.Reflection.MethodInfo
obj object
args object
Résultat object
		internal static object InvokeInDomainByID (int domain_id, MethodInfo method, object obj, object [] args)
		{
			AppDomain current = CurrentDomain;
			bool pushed = false;

			try {
				Exception exc;
				InternalPushDomainRefByID (domain_id);
				pushed = true;
				InternalSetDomainByID (domain_id);
				object o = ((MonoMethod) method).InternalInvoke (obj, args, out exc);
				if (exc != null)
					throw exc;
				return o;
			}
			finally {
				InternalSetDomain (current);
				if (pushed)
					InternalPopDomainRef ();
			}
		}