public static IConnectibleProperty <TValue> TryGetConnectedProperty <TValue, TTag>(this object carrier, bool bypassValidation) { Contract.Requires(carrier != null); return(ConnectibleProperty <TValue> .TryCastFrom(Connector.TryGet <TTag>(carrier, bypassValidation))); }
public static IConnectibleProperty <dynamic> TryGetConnectedProperty(this object carrier, string name, bool bypassValidation = false) { Contract.Requires(carrier != null); return(Connector.TryGet(carrier, name ?? Unnamed, bypassValidation)); }