public static RandomizerConfig GetConfig(RandomizerPage page) { object objValue = page.GetValue(ConfigProperty); if (!(objValue is RandomizerConfig)) { throw new InvalidOperationException("Property value for property Config was not of type RandomizerConfig"); } return((RandomizerConfig)objValue); }
public static void SetConfig(RandomizerPage page, RandomizerConfig value) => page.SetValue(ConfigProperty, value);