/// <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(Witsml200.AbstractObject dataObject) { return(GetObjectType(dataObject.GetType())); }
/// <summary> /// Gets the <see cref="EtpUri"/> for a given <see cref="Energistics.DataAccess.WITSML200.AbstractObject"/> entity. /// </summary> /// <param name="entity">The <see cref="Energistics.DataAccess.WITSML200.AbstractObject"/> entity.</param> /// <returns>An <see cref="EtpUri"/> instance.</returns> public static EtpUri GetUriFamily(this Witsml200.AbstractObject entity) { return(GetUriFamily(entity?.GetType())); }