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>
System.Collections.IEnumerable
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Google.Apis.Util
Assembly: Google.Apis.Core.dll
Syntax
public class Repeatable<T> : IEnumerable<T>, IEnumerable
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>

Explicit Interface Implementations

IEnumerable.GetEnumerator()

Declaration
IEnumerator IEnumerable.GetEnumerator()
Returns
Type Description
System.Collections.IEnumerator

Implements

System.Collections.Generic.IEnumerable<T>
System.Collections.IEnumerable

Extension Methods

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