Collections.Fill(IList, Object) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Replaces all of the elements of the specified list with the specified element.
[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);
[<Android.Runtime.Register("fill", "(Ljava/util/List;Ljava/lang/Object;)V", "")>]
[<Java.Interop.JavaTypeParameters(new System.String[] { "T" })>]
static member Fill : System.Collections.IList * Java.Lang.Object -> unit
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.