/// <summary> /// Gets the type of the object. /// </summary> /// <param name="dataObject">The data object.</param> /// <returns>The WITSML data object type, as a string.</returns> public static string GetObjectType(Prodml200.AbstractObject dataObject) { return(GetObjectType(dataObject.GetType())); }
/// <summary> /// Gets the <see cref="EtpUri"/> for a given <see cref="Energistics.DataAccess.PRODML200.AbstractObject"/> entity. /// </summary> /// <param name="entity">The <see cref="Energistics.DataAccess.PRODML200.AbstractObject"/> entity.</param> /// <returns>An <see cref="EtpUri"/> instance.</returns> public static EtpUri GetUriFamily(this Prodml200.AbstractObject entity) { return(GetUriFamily(entity?.GetType())); }