Class Repeatable<T>

public class Repeatable<T> : IEnumerable<T>

Repeatable class which allows you to both pass a single element, as well as an array, as a parameter value.

Inheritance

Object > Repeatable<T>

Namespace

Google.Apis.Util

Assembly

Google.Apis.Core.dll

Type Parameter

NameDescription
T

Constructors

Repeatable(IEnumerable<T>)

public Repeatable(IEnumerable<T> enumeration)

Creates a repeatable value.

Parameter
TypeNameDescription
IEnumerable<T>enumeration

Methods

GetEnumerator()

public IEnumerator<T> GetEnumerator()
Returns
TypeDescription
IEnumerator<T>

Operators

Implicit(T to Repeatable<T>)

public static implicit operator Repeatable<T>(T elem)

Converts the single element into a repeatable.

Parameter
TypeNameDescription
Telem
Returns
TypeDescription
Repeatable<T>

Implicit(T[] to Repeatable<T>)

public static implicit operator Repeatable<T>(T[] elem)

Converts a number of elements into a repeatable.

Parameter
TypeNameDescription
T[]elem
Returns
TypeDescription
Repeatable<T>

Implicit(List<T> to Repeatable<T>)

public static implicit operator Repeatable<T>(List<T> elem)

Converts a number of elements into a repeatable.

Parameter
TypeNameDescription
List<T>elem
Returns
TypeDescription
Repeatable<T>

Extension Method