Click or drag to resize

ReadOnlyArray Class

A class representing a readonly ordered collection of objects
Inheritance Hierarchy

Namespace:  Couchbase.Lite
Assembly:  Couchbase.Lite (in Couchbase.Lite.dll) Version: 2.0.0-b0125
Syntax
C#
public class ReadOnlyArray : IReadOnlyArray, 
	IReadOnlyArrayFragment, IEnumerable<Object>, IEnumerable

The ReadOnlyArray type exposes the following members.

Properties
  NameDescription
Public propertyCount
Gets the number of elements in the collection
Public propertyItem
Gets the value of the given index, or lack thereof, wrapped inside of a ReadOnlyFragment
Top
Methods
  NameDescription
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetArray
Gets the value at the given index as a read only array
Public methodGetBlob
Gets the value at the given index as a Blob
Public methodGetBoolean
Gets the value at the given index as a Boolean
Public methodGetDate
Gets the value at the given index as a DateTimeOffset
Public methodGetDictionary
Gets the value at the given index as an IReadOnlyDictionary
Public methodGetDouble
Gets the value at the given index as a Double
Public methodGetEnumerator
Returns an enumerator that iterates through the collection.
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetInt
Gets the value at the given index as an Int32
Public methodGetLong
Gets the value at the given index as an Int64
Public methodGetObject
Gets the value at the given index as an untyped object
Public methodGetString
Gets the value at the given index as a String
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodToList
Converts this object to a standard .NET collection
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Top
Extension Methods
  NameDescription
Public Extension MethodAnyAndEveryObject
Returns whether or not the collection has at least one item AND at least one item matching the given pattern
(Defined by LinqExtensionMethods.)
Top
See Also