Show / Hide Table of Contents

Class Repeatable<T>

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

Inheritance
System.Object
Repeatable<T>
Implements
System.Collections.Generic.IEnumerable<T>
Namespace: Google.Apis.Util
Assembly: Google.Apis.Core.dll
Syntax
public class Repeatable<T> : object, IEnumerable<T>
Type Parameters
Name Description
T

Constructors

Repeatable(IEnumerable<T>)

Creates a repeatable value.

Declaration
public Repeatable(IEnumerable<T> enumeration)
Parameters
Type Name Description
System.Collections.Generic.IEnumerable<T> enumeration

Methods

GetEnumerator()

Declaration
public IEnumerator<T> GetEnumerator()
Returns
Type Description
System.Collections.Generic.IEnumerator<T>

Operators

Implicit(T to Repeatable<T>)

Converts the single element into a repeatable.

Declaration
public static implicit operator Repeatable<T>(T elem)
Parameters
Type Name Description
T elem
Returns
Type Description
Repeatable<T>

Implicit(T[] to Repeatable<T>)

Converts a number of elements into a repeatable.

Declaration
public static implicit operator Repeatable<T>(T[] elem)
Parameters
Type Name Description
T[] elem
Returns
Type Description
Repeatable<T>

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

Converts a number of elements into a repeatable.

Declaration
public static implicit operator Repeatable<T>(List<T> elem)
Parameters
Type Name Description
System.Collections.Generic.List<T> elem
Returns
Type Description
Repeatable<T>

Implements

System.Collections.Generic.IEnumerable<T>

Extension Methods

Utilities.ThrowIfNull<T>(T, String)
Back to top