public SAPITaperedSection(string name, SAPISection startSection, SAPISection endSection, double length, LengthTypeEnum lengthType = LengthTypeEnum.Relative) { LengthType = lengthType; Name = name; StartSection = startSection; EndSection = endSection; Length = length; }
/// <summary> /// Gets binary value of length type /// </summary> /// <param name="value">Length type enum</param> /// <returns>Int of binary value</returns> public static int GetLengthTypeBinary(LengthTypeEnum value) { var enumValue = Convert.ToString(value)?.GetEnumMemberValue(typeof(LengthTypeEnum)); return(Convert.ToInt32(enumValue, 2)); }