Class Repeatable<T> (1.60.0)

public class Repeatable<T> : IEnumerable<T>, IEnumerable

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

Inheritance

object > Repeatable<T>

Implements

IEnumerable, IEnumerable

Namespace

GoogleApisUtil

Assembly

Google.Apis.Core.dll

Type Parameter

Name Description
T

Constructors

Repeatable(IEnumerable<T>)

public Repeatable(IEnumerable<T> enumeration)

Creates a repeatable value.

Parameter
Name Description
enumeration IEnumerable

Methods

GetEnumerator()

public IEnumerator<T> GetEnumerator()
Returns
Type Description
IEnumerator

Operators

implicit operator Repeatable<T>(T)

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

Converts the single element into a repeatable.

Parameter
Name Description
elem T
Returns
Type Description
Repeatable

implicit operator Repeatable<T>(T[])

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

Converts a number of elements into a repeatable.

Parameter
Name Description
elem
Returns
Type Description
Repeatable

implicit operator Repeatable<T>(List<T>)

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

Converts a number of elements into a repeatable.

Parameter
Name Description
elem List
Returns
Type Description
Repeatable

Explicit Interface Implementations

IEnumerable.GetEnumerator()

IEnumerator IEnumerable.GetEnumerator()
Returns
Type Description
IEnumerator

Extension Method