// shallow copy constructor used for smuggling. private ObjRef(ObjRef o) { BCLDebug.Assert(o.GetType() == typeof(ObjRef), "this should be just an ObjRef"); uri = o.uri; typeInfo = o.typeInfo; envoyInfo = o.envoyInfo; channelInfo = o.channelInfo; objrefFlags = o.objrefFlags; } // ObjRef
// shallow copy constructor used for smuggling. private ObjRef(ObjRef o) { BCLDebug.Assert(o.GetType() == typeof(ObjRef), "this should be just an ObjRef"); uri = o.uri; typeInfo = o.typeInfo; envoyInfo = o.envoyInfo; channelInfo = o.channelInfo; objrefFlags = o.objrefFlags; SetServerIdentity(o.GetServerIdentity()); SetDomainID(o.GetDomainID()); } // ObjRef
} // 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); }
} // 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; }
// shallow copy constructor used for smuggling. private ObjRef(ObjRef o) { BCLDebug.Assert(o.GetType() == typeof(ObjRef), "this should be just an ObjRef"); uri = o.uri; typeInfo = o.typeInfo; envoyInfo = o.envoyInfo; channelInfo = o.channelInfo; objrefFlags = o.objrefFlags; } // ObjRef
[System.Security.SecurityCritical] // auto-generated private ObjRef(ObjRef o) { BCLDebug.Assert(o.GetType() == typeof(ObjRef), "this should be just an ObjRef"); uri = o.uri; typeInfo = o.typeInfo; envoyInfo = o.envoyInfo; channelInfo = o.channelInfo; objrefFlags = o.objrefFlags; SetServerIdentity(o.GetServerIdentity()); SetDomainID(o.GetDomainID()); } // ObjRef
internal static bool IsWellFormed(ObjRef objectRef) { bool flag = true; return ((((objectRef != null) && (objectRef.URI != null)) && ((objectRef.IsWellKnown() || objectRef.IsObjRefLite()) || ((objectRef.GetType() != orType) || (objectRef.ChannelInfo != null)))) && flag); }
internal static bool IsWellFormed(ObjRef objectRef) { bool result = true; if (objectRef == null || objectRef.URI == null || (!objectRef.IsWellKnown() && !objectRef.IsObjRefLite() && !(objectRef.GetType() != ObjRef.orType) && objectRef.ChannelInfo == null)) { result = false; } return(result); }
internal static bool IsWellFormed(ObjRef objectRef) { bool flag = true; if (objectRef == null || objectRef.URI == null || !objectRef.IsWellKnown() && !objectRef.IsObjRefLite() && (!(objectRef.GetType() != ObjRef.orType) && objectRef.ChannelInfo == null)) { flag = false; } return(flag); }
internal static bool IsWellFormed(ObjRef objectRef) { bool flag = true; return((((objectRef != null) && (objectRef.URI != null)) && ((objectRef.IsWellKnown() || objectRef.IsObjRefLite()) || ((objectRef.GetType() != orType) || (objectRef.ChannelInfo != null)))) && flag); }