[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-28 UTC."],[[["\u003cp\u003eThis webpage provides documentation for the \u003ccode\u003eResourceNameList<TName>\u003c/code\u003e class, a specialized list for managing resource names within the Google.Api.Gax library for .NET.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eResourceNameList<TName>\u003c/code\u003e implements interfaces such as \u003ccode\u003eIList\u003c/code\u003e, \u003ccode\u003eICollection\u003c/code\u003e, and \u003ccode\u003eIEnumerable\u003c/code\u003e, allowing it to function similarly to a standard list, but with specific handling for resource name types.\u003c/p\u003e\n"],["\u003cp\u003eThe class constructor, \u003ccode\u003eResourceNameList(IList<string> underlyingList, Func<string, TName> stringToName)\u003c/code\u003e, allows the creation of the list using a string-based list and a function to parse resource names, enabling its initialization with existing data.\u003c/p\u003e\n"],["\u003cp\u003eThe class offers various methods, such as \u003ccode\u003eAdd\u003c/code\u003e, \u003ccode\u003eRemove\u003c/code\u003e, \u003ccode\u003eInsert\u003c/code\u003e, and \u003ccode\u003eIndexOf\u003c/code\u003e, to manage the list of resource names, along with properties like \u003ccode\u003eCount\u003c/code\u003e and \u003ccode\u003eIsReadOnly\u003c/code\u003e for list information.\u003c/p\u003e\n"],["\u003cp\u003eThe documentation lists multiple versions of the \u003ccode\u003eResourceNameList\u003c/code\u003e class, including the latest version, 4.10.0, and older versions down to 3.2.0.\u003c/p\u003e\n"]]],[],null,["# Class ResourceNameList<TName> (4.10.0)\n\nVersion latestkeyboard_arrow_down\n\n- [4.10.0 (latest)](/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.ResourceNameList-1)\n- [4.8.0](/dotnet/docs/reference/Google.Api.Gax/4.8.0/Google.Api.Gax.ResourceNameList-1)\n- [4.4.0](/dotnet/docs/reference/Google.Api.Gax/4.4.0/Google.Api.Gax.ResourceNameList-1)\n- [4.3.1](/dotnet/docs/reference/Google.Api.Gax/4.3.1/Google.Api.Gax.ResourceNameList-1)\n- [4.2.0](/dotnet/docs/reference/Google.Api.Gax/4.2.0/Google.Api.Gax.ResourceNameList-1)\n- [4.0.0](/dotnet/docs/reference/Google.Api.Gax/4.0.0/Google.Api.Gax.ResourceNameList-1)\n- [3.2.0](/dotnet/docs/reference/Google.Api.Gax/3.2.0/Google.Api.Gax.ResourceNameList-1) \n\n public sealed class ResourceNameList\u003cTName\u003e : IList\u003cTName\u003e, ICollection\u003cTName\u003e, IEnumerable\u003cTName\u003e, IEnumerable where TName : class, IResourceName\n\nA list of resource names of a specific type, that delegates all operations to an\nunderlying list of string-based resource names. \n\nInheritance\n-----------\n\n[object](https://learn.microsoft.com/dotnet/api/system.object) \\\u003e ResourceNameList\\\u003cTName\\\u003e \n\nImplements\n----------\n\n[IList](https://learn.microsoft.com/dotnet/api/system.collections.generic.ilist-1), [ICollection](https://learn.microsoft.com/dotnet/api/system.collections.generic.icollection-1), [IEnumerable](https://learn.microsoft.com/dotnet/api/system.collections.generic.ienumerable-1), [IEnumerable](https://learn.microsoft.com/dotnet/api/system.collections.ienumerable) \n\nInherited Members\n-----------------\n\n[object.Equals(object)](https://learn.microsoft.com/dotnet/api/system.object.equals#system-object-equals(system-object)) \n[object.Equals(object, object)](https://learn.microsoft.com/dotnet/api/system.object.equals#system-object-equals(system-object-system-object)) \n[object.GetHashCode()](https://learn.microsoft.com/dotnet/api/system.object.gethashcode) \n[object.GetType()](https://learn.microsoft.com/dotnet/api/system.object.gettype) \n[object.ReferenceEquals(object, object)](https://learn.microsoft.com/dotnet/api/system.object.referenceequals) \n[object.ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring)\n\nNamespace\n---------\n\n[Google.Api.Gax](/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax)\n\nAssembly\n--------\n\nGoogle.Api.Gax.dll\n\nConstructors\n------------\n\n### ResourceNameList(IList\\\u003cstring\\\u003e, Func\\\u003cstring, TName\\\u003e)\n\n public ResourceNameList(IList\u003cstring\u003e underlyingList, Func\u003cstring, TName\u003e stringToName)\n\nConstructs a [ResourceNameList\\\u003cTName\\\u003e](/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.ResourceNameList-1) from an underlying string-based list\nand a resource name parser.\n\nProperties\n----------\n\n### Count\n\n public int Count { get; }\n\n### IsReadOnly\n\n public bool IsReadOnly { get; }\n\n### this\\[int\\]\n\n public TName this[int index] { get; set; }\n\nMethods\n-------\n\n### Add(IEnumerable\\\u003cTName\\\u003e)\n\n public void Add(IEnumerable\u003cTName\u003e items)\n\nAdds all items to this list.\n\n### Add(TName)\n\n public void Add(TName item)\n\n### Clear()\n\n public void Clear()\n\n### Contains(TName)\n\n public bool Contains(TName item)\n\n### CopyTo(TName\\[\\], int)\n\n public void CopyTo(TName[] array, int arrayIndex)\n\n### GetEnumerator()\n\n public IEnumerator\u003cTName\u003e GetEnumerator()\n\n### IndexOf(TName)\n\n public int IndexOf(TName item)\n\n### Insert(int, TName)\n\n public void Insert(int index, TName item)\n\n### Remove(TName)\n\n public bool Remove(TName item)\n\n### RemoveAt(int)\n\n public void RemoveAt(int index)"]]