using CPF.Mac.Foundation; using CPF.Mac.ObjCRuntime; using System; namespace CPF.Mac.CoreText { [Since(3, 2)] public class CTFontCollectionOptions { public NSDictionary Dictionary { get; private set; } public bool RemoveDuplicates { get { int? int32Value = Adapter.GetInt32Value(Dictionary, CTFontCollectionOptionKey.RemoveDuplicates); if (!int32Value.HasValue) { return false; } return int32Value.Value != 0; } set { int? value2 = value ? new int?(1) : null; Adapter.SetValue(Dictionary, CTFontCollectionOptionKey.RemoveDuplicates, value2); } } public CTFontCollectionOptions() : this(new NSMutableDictionary()) { } public CTFontCollectionOptions(NSDictionary dictionary) { if (dictionary == null) { throw new ArgumentNullException("dictionary"); } Dictionary = dictionary; } } }