System.Runtime.Remoting.RemotingConfiguration.ProviderData.CopyFrom C# (CSharp) Méthode

CopyFrom() public méthode

public CopyFrom ( System.Runtime.Remoting.ProviderData other ) : void
other System.Runtime.Remoting.ProviderData
Résultat void
		public void CopyFrom (ProviderData other)
		{
			if (Ref == null) Ref = other.Ref;
			if (Id == null) Id = other.Id;
			if (Type == null) Type = other.Type;
			
			foreach (DictionaryEntry entry in other.CustomProperties)
				if (!CustomProperties.ContainsKey (entry.Key))
					CustomProperties [entry.Key] = entry.Value;
					
			if (other.CustomData != null)
			{
				if (CustomData == null) CustomData = new ArrayList ();
				foreach (SinkProviderData data in other.CustomData)
					CustomData.Add (data);
			}
		}
	}
RemotingConfiguration.ProviderData