17 using System.Runtime.CompilerServices;
26 public static partial class Messages
33 [MethodImpl(MethodImplOptions.AggressiveInlining)]
34 public static string InvalidObjectTypeToCompareTo(Type type)
36 return $
"Object must be of type {type.GetBetterTypeName()}";
39 [MethodImpl(MethodImplOptions.AggressiveInlining)]
40 public static string ToString(Indicators.IndicatorDataPoint instance)
42 return Invariant($
"{instance.Time.ToStringInvariant("s
")} - {instance.Value}");
45 [MethodImpl(MethodImplOptions.AggressiveInlining)]
46 public static string UnsupportedMethod(
string methodName)
48 return $
"IndicatorDataPoint does not support the {methodName} function. This function should never be called on this type.";
57 public static string InvalidSize =
"RollingWindow must have size of at least 1.";
59 public static string NoItemsRemovedYet =
"No items have been removed yet!";
61 public static string IndexOutOfSizeRange =
"Index must be a non-negative integer";