public static string ConvertDeliveryAckTypeToString(DeliveryAcknowledgement value) { #if PCL if (AckTypeMap.ContainsKey(value)) #else if (AckTypeMap.Contains(value)) #endif { return((string)AckTypeMap[value]); } throw new NotSupportedException("Unknown value: " + value); }