Läs på engelska

Dela via


Collections.Fill(IList, Object) Method

Definition

Replaces all of the elements of the specified list with the specified element.

C#
[Android.Runtime.Register("fill", "(Ljava/util/List;Ljava/lang/Object;)V", "")]
[Java.Interop.JavaTypeParameters(new System.String[] { "T" })]
public static void Fill (System.Collections.IList list, Java.Lang.Object? obj);

Parameters

list
IList

the list to be filled with the specified element.

obj
Object

The element with which to fill the specified list.

Attributes

Remarks

Replaces all of the elements of the specified list with the specified element.

This method runs in linear time.

Java documentation for java.util.Collections.fill(java.util.List<? super T>, T).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to

Produkt Versioner
.NET for Android .NET for Android API 34, .NET for Android API 35