Пример #1
0
 /// <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()));
 }
Пример #2
0
 /// <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()));
 }