101
107
<AssemblyVersion>0.0.0.0</AssemblyVersion>
111
<AttributeName>System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Advanced)</AttributeName>
104
115
<Parameter Name="t" Type="MonoMac.Foundation.NSObjectFlag" />
107
118
<param name="t">Unused sentinel value, pass NSObjectFlag.Empty.</param>
108
<summary>Constructor to call on derived classes to skip initialization and merely allocate the object.</summary>
119
<summary>Constructor to call on derived classes when the derived class has an [Export] constructor.</summary>
110
<para>This constructor should be called by derived classes when they completely construct the object in managed code and merely want the runtime to allocate and initialize the NSObject. This is required to implement the two-step initialization process that Objective-C uses, the first step is to perform the object allocation, the second step is to initialize the object. When you invoke the constructor that takes the NSObjectFlag.Empty you taking advatnage of a direct path that goes all the way up to NSObject to merely allocate the object's memory and bind the Objective-C and C# objects together. The actual initialization of the object is up to you.</para>
111
<para>This constructor is typically used by the binding generator to allocate the object, but prevent the actual initialization to take place. Once the allocation has taken place, the constructor has to initialize the object. With constructors generated by the binding generator this means that it manually invokes one of the "init" methods to initialize the object.</para>
112
<para>It is your responsability to completely initialize the object if you chain up using the NSObjectFlag.Empty path.</para>
113
<para>In general, if your constructors invokes the NSObjectFlag.Empty base implementation, then it should be calling an Objective-C init method. If this is not the case, you should instead chain to the proper constructor in your class. </para>
114
<para>The argument value is ignored and merely ensures that the only code that is executed is the construction phase is the basic NSObject allocation and runtime type registration. Typically the chaining would look like this:</para>
121
<para>This constructor should be called by derived classes when they are initialized using an [Export] attribute. The argument value is ignore, typically the chaining would look like this:</para>
118
// The NSObjectFlag merely allocates the object and registers the
119
// C# class with the Objective-C runtime if necessary, but no actual
120
// initXxx method is invoked, that is done later in the constructor
122
// This is taken from MonoMac's source code:
124
[Export ("initWithFrame:")]
125
public UIView (System.Drawing.RectangleF frame) : base (NSObjectFlag.Empty)
127
// Invoke the init method now.
128
var initWithFrame = new Selector ("initWithFrame:").Handle;
130
Handle = MonoMac.ObjCRuntime.Messaging.IntPtr_objc_msgSend_RectangleF (this.Handle, initWithFrame, frame);
132
Handle = MonoMac.ObjCRuntime.Messaging.IntPtr_objc_msgSendSuper_RectangleF (this.SuperHandle, initWithFrame, frame);
124
public class MyClass : BaseClass {
125
[Export ("initWithFoo:")]
126
public MyClass (string foo) : base (NSObjectFlag.Empty)
196
197
<remarks>To be added.</remarks>
200
<Member MemberName=".ctor">
201
<MemberSignature Language="C#" Value="public NSDictionary (MonoMac.Foundation.NSObject first, MonoMac.Foundation.NSObject second, MonoMac.Foundation.NSObject[] args);" />
202
<MemberSignature Language="ILAsm" Value=".method public hidebysig specialname rtspecialname instance void .ctor(class MonoMac.Foundation.NSObject first, class MonoMac.Foundation.NSObject second, class MonoMac.Foundation.NSObject[] args) cil managed" />
203
<MemberType>Constructor</MemberType>
205
<AssemblyVersion>0.0.0.0</AssemblyVersion>
208
<Parameter Name="first" Type="MonoMac.Foundation.NSObject" />
209
<Parameter Name="second" Type="MonoMac.Foundation.NSObject" />
210
<Parameter Name="args" Type="MonoMac.Foundation.NSObject[]">
213
<AttributeName>System.ParamArray</AttributeName>
219
<param name="first">To be added.</param>
220
<param name="second">To be added.</param>
221
<param name="args">To be added.</param>
222
<summary>To be added.</summary>
223
<remarks>To be added.</remarks>
226
<Member MemberName=".ctor">
227
<MemberSignature Language="C#" Value="public NSDictionary (object first, object second, object[] args);" />
228
<MemberSignature Language="ILAsm" Value=".method public hidebysig specialname rtspecialname instance void .ctor(object first, object second, object[] args) cil managed" />
229
<MemberType>Constructor</MemberType>
231
<AssemblyVersion>0.0.0.0</AssemblyVersion>
234
<Parameter Name="first" Type="System.Object" />
235
<Parameter Name="second" Type="System.Object" />
236
<Parameter Name="args" Type="System.Object[]">
239
<AttributeName>System.ParamArray</AttributeName>
245
<param name="first">To be added.</param>
246
<param name="second">To be added.</param>
247
<param name="args">To be added.</param>
248
<summary>To be added.</summary>
249
<remarks>To be added.</remarks>
199
252
<Member MemberName="ClassHandle">
200
253
<MemberSignature Language="C#" Value="public override IntPtr ClassHandle { get; }" />
201
254
<MemberSignature Language="ILAsm" Value=".property instance native int ClassHandle" />
253
306
<remarks>To be added.</remarks>
256
<Member MemberName="Description">
257
<MemberSignature Language="C#" Value="public virtual string Description { get; }" />
258
<MemberSignature Language="ILAsm" Value=".property instance string Description" />
259
<MemberType>Property</MemberType>
261
<AssemblyVersion>0.0.0.0</AssemblyVersion>
265
<AttributeName>get: MonoMac.Foundation.Export("description")</AttributeName>
269
<ReturnType>System.String</ReturnType>
272
<summary>To be added.</summary>
273
<value>To be added.</value>
274
<remarks>To be added.</remarks>
277
309
<Member MemberName="DescriptionInStringsFileFormat">
278
310
<MemberSignature Language="C#" Value="public virtual string DescriptionInStringsFileFormat { get; }" />
279
311
<MemberSignature Language="ILAsm" Value=".property instance string DescriptionInStringsFileFormat" />
312
344
<param name="disposing">
313
345
<para>If set to <see langword="true" />, the method is invoked directly and will dispose manage and unmanaged resources; If set to <see langword="false" /> the method is being called by the garbage collector finalizer and should only release unmanaged resources.</para>
315
<summary>Releases the resourced used by the NSDictionary object.</summary>
347
<summary>Releases the resources used by the NSDictionary object.</summary>
317
349
<para>This Dispose method releases the resources used by the NSDictionary class.</para>
318
350
<para>This method is called by both the Dispose() method and the object finalizer (Finalize). When invoked by the Dispose method, the parameter disposting <paramref name="disposing" /> is set to <see langword="true" /> and any managed object references that this object holds are also disposed or released; when invoked by the object finalizer, on the finalizer thread the value is set to <see langword="false" />. </para>
532
564
<remarks>To be added.</remarks>
567
<Member MemberName="GetSharedKeySetForKeys">
568
<MemberSignature Language="C#" Value="public static MonoMac.Foundation.NSObject GetSharedKeySetForKeys (MonoMac.Foundation.NSObject[] keys);" />
569
<MemberSignature Language="ILAsm" Value=".method public static hidebysig class MonoMac.Foundation.NSObject GetSharedKeySetForKeys(class MonoMac.Foundation.NSObject[] keys) cil managed" />
570
<MemberType>Method</MemberType>
572
<AssemblyVersion>0.0.0.0</AssemblyVersion>
576
<AttributeName>MonoMac.Foundation.Export("sharedKeySetForKeys:")</AttributeName>
580
<ReturnType>MonoMac.Foundation.NSObject</ReturnType>
583
<Parameter Name="keys" Type="MonoMac.Foundation.NSObject[]" />
586
<param name="keys">To be added.</param>
587
<summary>To be added.</summary>
588
<returns>To be added.</returns>
589
<remarks>To be added.</remarks>
535
592
<Member MemberName="IsEqualToDictionary">
536
593
<MemberSignature Language="C#" Value="public virtual bool IsEqualToDictionary (MonoMac.Foundation.NSDictionary other);" />
537
594
<MemberSignature Language="ILAsm" Value=".method public hidebysig newslot virtual instance bool IsEqualToDictionary(class MonoMac.Foundation.NSDictionary other) cil managed" />
577
634
<remarks>To be added.</remarks>
637
<Member MemberName="Item">
638
<MemberSignature Language="C#" Value="public virtual MonoMac.Foundation.NSObject this[MonoMac.Foundation.NSString key] { get; set; }" />
639
<MemberSignature Language="ILAsm" Value=".property instance class MonoMac.Foundation.NSObject Item(class MonoMac.Foundation.NSString)" />
640
<MemberType>Property</MemberType>
642
<AssemblyVersion>0.0.0.0</AssemblyVersion>
645
<ReturnType>MonoMac.Foundation.NSObject</ReturnType>
648
<Parameter Name="key" Type="MonoMac.Foundation.NSString" />
651
<param name="key">To be added.</param>
652
<summary>To be added.</summary>
653
<value>To be added.</value>
654
<remarks>To be added.</remarks>
657
<Member MemberName="Item">
658
<MemberSignature Language="C#" Value="public virtual MonoMac.Foundation.NSObject this[string key] { get; set; }" />
659
<MemberSignature Language="ILAsm" Value=".property instance class MonoMac.Foundation.NSObject Item(string)" />
660
<MemberType>Property</MemberType>
662
<AssemblyVersion>0.0.0.0</AssemblyVersion>
665
<ReturnType>MonoMac.Foundation.NSObject</ReturnType>
668
<Parameter Name="key" Type="System.String" />
671
<param name="key">To be added.</param>
672
<summary>To be added.</summary>
673
<value>To be added.</value>
674
<remarks>To be added.</remarks>
580
677
<Member MemberName="Keys">
581
678
<MemberSignature Language="C#" Value="public virtual MonoMac.Foundation.NSObject[] Keys { get; }" />
582
679
<MemberSignature Language="ILAsm" Value=".property instance class MonoMac.Foundation.NSObject[] Keys" />