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
object
Repeatable<T>
Implements
IEnumerable<T>
IEnumerable
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
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
IEnumerable<T> enumeration

Methods

GetEnumerator()

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

Operators

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

Converts a number of elements into a repeatable.

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

implicit operator Repeatable<T>(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 operator Repeatable<T>(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>

Implements

IEnumerable<T>
IEnumerable

Extension Methods

Utilities.ThrowIfNull<T>(T, string)
In this article
Back to top Generated by DocFX