diff --git a/src/bindings/mono/eina_mono/eina_array.cs b/src/bindings/mono/eina_mono/eina_array.cs index 0b96920fbd..617664b34e 100644 --- a/src/bindings/mono/eina_mono/eina_array.cs +++ b/src/bindings/mono/eina_mono/eina_array.cs @@ -3,6 +3,7 @@ using System; using System.Runtime.InteropServices; using System.Collections.Generic; +using System.ComponentModel; using static Eina.TraitFunctions; using static Eina.ArrayNativeFunctions; @@ -10,6 +11,7 @@ using static Eina.ArrayNativeFunctions; namespace Eina { +[EditorBrowsable(EditorBrowsableState.Never)] public static class ArrayNativeFunctions { [DllImport(efl.Libs.Eina)] public static extern IntPtr @@ -46,20 +48,27 @@ public static class ArrayNativeFunctions } /// A container of contiguous allocated elements. -/// -/// Since EFL 1.23. +/// Since EFL 1.23. /// public class Array : IEnumerable, IDisposable { public static uint DefaultStep = 32; /// Pointer to the native buffer. + [EditorBrowsable(EditorBrowsableState.Never)] public IntPtr Handle {get;set;} = IntPtr.Zero; - ///Whether this wrapper owns the native buffer. + /// Whether this wrapper owns the native buffer. + /// Since EFL 1.23. + /// public bool Own {get;set;} - /// Who is in charge of releasing the resources wrapped by this instance. + /// Who is in charge of releasing the resources wrapped by + /// this instance. + /// Since EFL 1.23. + /// public bool OwnContent {get;set;} - /// Length of the array. + /// Length of the array. + /// Since EFL 1.23. + /// public int Length { get { return Count(); } @@ -98,6 +107,7 @@ public class Array : IEnumerable, IDisposable /// /// Create a new array. + /// Since EFL 1.23. /// public Array() { @@ -106,6 +116,7 @@ public class Array : IEnumerable, IDisposable /// /// Create a new array. + /// Since EFL 1.23. /// /// Step size of the array. public Array(uint step) @@ -118,6 +129,7 @@ public class Array : IEnumerable, IDisposable /// /// The native handle to be wrapped. /// Whether this wrapper owns the native handle. + [EditorBrowsable(EditorBrowsableState.Never)] public Array(IntPtr handle, bool own) { if (handle == IntPtr.Zero) @@ -131,11 +143,12 @@ public class Array : IEnumerable, IDisposable } /// - /// Create a new array + /// Create a new array. /// /// The native array to be wrapped. /// Whether this wrapper owns the native array. /// For compatibility with other EFL# containers. + [EditorBrowsable(EditorBrowsableState.Never)] public Array(IntPtr handle, bool own, bool ownContent) { if (handle == IntPtr.Zero) @@ -150,12 +163,15 @@ public class Array : IEnumerable, IDisposable /// /// Finalizer to be called from the Garbage Collector. + /// Since EFL 1.23. /// ~Array() { Dispose(false); } - /// Disposes of this wrapper, releasing the native array if owned. + /// Disposes of this wrapper, releasing the native array if owned. + /// Since EFL 1.23. + /// /// True if this was called from public method. False if /// called from the C# finalizer. protected virtual void Dispose(bool disposing) @@ -189,14 +205,18 @@ public class Array : IEnumerable, IDisposable } } - /// Releases the native resources held by this instance. + /// Releases the native resources held by this instance. + /// Since EFL 1.23. + /// public void Dispose() { Dispose(true); GC.SuppressFinalize(this); } - /// Releases the native resources held by this instance. + /// Releases the native resources held by this instance. + /// Since EFL 1.23. + /// public void Free() { Dispose(); @@ -204,6 +224,7 @@ public class Array : IEnumerable, IDisposable /// /// Releases the native array. + /// Since EFL 1.23. /// /// The native array. public IntPtr Release() @@ -227,6 +248,7 @@ public class Array : IEnumerable, IDisposable /// /// Clears an array's elements and deallocates the memory. + /// Since EFL 1.23. /// public void Clean() { @@ -245,6 +267,7 @@ public class Array : IEnumerable, IDisposable /// /// Returns the number of elements in an array. + /// Since EFL 1.23. /// /// The number of elements. public int Count() @@ -266,6 +289,7 @@ public class Array : IEnumerable, IDisposable /// /// Inserts the element of the array at the end. + /// Since EFL 1.23. /// /// The value of the element to be inserted. public bool Push(T val) @@ -291,6 +315,7 @@ public class Array : IEnumerable, IDisposable /// /// Returns the element of the array at the end. + /// Since EFL 1.23. /// /// The element at the end position. public T Pop() @@ -307,6 +332,7 @@ public class Array : IEnumerable, IDisposable /// /// Returns the element of the array at the specified position. + /// Since EFL 1.23. /// /// The position of the desired element. /// The element at the specified position @@ -318,6 +344,7 @@ public class Array : IEnumerable, IDisposable /// /// Returns the element of the array at the specified position. + /// Since EFL 1.23. /// /// The position of the desired element. /// The element at the specified position @@ -328,6 +355,7 @@ public class Array : IEnumerable, IDisposable /// /// Replaces the element at the specified position. + /// Since EFL 1.23. /// /// The position of the desired element. /// The value of the element to be inserted. @@ -343,6 +371,10 @@ public class Array : IEnumerable, IDisposable InternalDataSet(idx, ele); } + /// + /// Accessor by index to the elements of this list. + /// Since EFL 1.23. + /// public T this[int idx] { get @@ -357,6 +389,7 @@ public class Array : IEnumerable, IDisposable /// /// Returns a array containing all of the elements in proper sequence. + /// Since EFL 1.23. /// /// A array public T[] ToArray() @@ -373,6 +406,7 @@ public class Array : IEnumerable, IDisposable /// /// Appends all elements at the end of array. + /// Since EFL 1.23. /// public bool Append(T[] values) { @@ -388,13 +422,17 @@ public class Array : IEnumerable, IDisposable } - /// Gets an Iterator for this Array. + /// Gets an Iterator for this Array. + /// Since EFL 1.23. + /// public Eina.Iterator GetIterator() { return new Eina.Iterator(eina_array_iterator_new(Handle), true); } - /// Gets an Enumerator for this Array. + /// Gets an Enumerator for this Array. + /// Since EFL 1.23. + /// public IEnumerator GetEnumerator() { int len = Length; @@ -404,13 +442,17 @@ public class Array : IEnumerable, IDisposable } } - /// Gets an Enumerator for this Array. + /// Gets an Enumerator for this Array. + /// Since EFL 1.23. + /// System.Collections.IEnumerator System.Collections.IEnumerable.GetEnumerator() { return this.GetEnumerator(); } - /// Gets an Accessor for this Array. + /// Gets an Accessor for this Array. + /// Since EFL 1.23. + /// public Eina.Accessor GetAccessor() { return new Eina.Accessor(eina_array_accessor_new(Handle), Ownership.Managed);