} // ShouldUseUrlObjRef
// Check whether the objref is well formed
internal static bool IsWellFormed(ObjRef objectRef)
{
// We skip the wellformed check for wellKnown,
// objref-lite and custom objrefs
bool wellFormed = true;
if ((null == objectRef) ||
(null == objectRef.URI) ||
(!(objectRef.IsWellKnown() || objectRef.IsObjRefLite() ||
objectRef.GetType() != orType) &&
(null == objectRef.ChannelInfo)))
{
wellFormed = false;
}
return(wellFormed);
}