예제 #1
0
 /// <summary>
 /// Returns new options with a new <see cref="MemorySizeOptions"/> value
 /// </summary>
 /// <param name="self">Operand options</param>
 /// <param name="options">Memory size options</param>
 /// <returns></returns>
 public static FormatterOperandOptions WithMemorySize(this FormatterOperandOptions self, MemorySizeOptions options) =>
 (self & ~FormatterOperandOptions.MemorySizeMask) | (FormatterOperandOptions)((uint)options << (int)FormatterOperandOptions.MemorySizeShift);
 public static bool TryMemorySizeOptions(string value, out MemorySizeOptions memorySizeOptions) => memorySizeOptionsDict.TryGetValue(value, out memorySizeOptions);