Class Repeatable<T> (1.55.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 <T>, IEnumerable

Namespace

Google.Apis.Util

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

Methods

GetEnumerator()

 public IEnumerator<T> GetEnumerator() 
Returns
Type
Description

Operators

Implicit(T to Repeatable<T>)

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

Converts the single element into a repeatable.

Parameter
Name
Description
elem
T
Returns
Type
Description

Implicit(T[] to Repeatable<T>)

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

Converts a number of elements into a repeatable.

Parameter
Name
Description
elem
T[]
Returns
Type
Description

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

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

Converts a number of elements into a repeatable.

Parameter
Name
Description
elem
List <T>
Returns
Type
Description

Explicit Interface Implementations

IEnumerable.GetEnumerator()

 IEnumerator IEnumerable.GetEnumerator() 
Returns
Type
Description

Extension Method

Create a Mobile Website
View Site in Mobile | Classic
Share by: