public SwiftDictionary(int capacity) : this(SwiftNominalCtorArgument.None) { unsafe { fixed(byte *retvalData = StructMarshal.Marshaler.PrepareNominal(this)) { DictPI.NewDict(new IntPtr(retvalData), capacity, StructMarshal.Marshaler.Metatypeof(typeof(T)), StructMarshal.Marshaler.Metatypeof(typeof(U)), StructMarshal.Marshaler.ProtocolWitnessof(typeof(ISwiftHashable), typeof(T))); StructMarshal.Marshaler.RetainNominalData(typeof(SwiftDictionary <T, U>), retvalData, SwiftData.Length); } } }