private CrossAppDomainData GetAppDomainChannelData()
{
BCLDebug.Assert(
ObjRef.IsWellFormed(this),
"ObjRef.IsWellFormed()");
// Look at the ChannelData part to find CrossAppDomainData
int i=0;
CrossAppDomainData xadData = null;
while (i<ChannelInfo.ChannelData.Length)
{
xadData = ChannelInfo.ChannelData[i] as CrossAppDomainData;
if (null != xadData)
{
return xadData;
}
i++;
}
// AdData could be null for user-created objRefs.
return null;
}