OPC Studio User's Guide and Reference
StringSet Constructor(IEnumerable<String>)



OpcLabs.BaseLib Assembly > OpcLabs.BaseLib.Collections.Specialized Namespace > StringSet Class > StringSet Constructor : StringSet Constructor(IEnumerable<String>)
The collection whose elements are copied to the new set.
Initializes a new instance of the StringSet class contains elements copied from the specified collection, and has sufficient capacity to accommodate the number of elements copied.
Syntax
'Declaration
 
Public Function New( _
   ByVal collection As IEnumerable(Of String) _
)
'Usage
 
Dim collection As IEnumerable(Of String)
 
Dim instance As New StringSet(collection)
public StringSet( 
   IEnumerable<string> collection
)
public:
StringSet( 
   IEnumerable<String^>^ collection
)

Parameters

collection
The collection whose elements are copied to the new set.
Requirements

Target Platforms: .NET Framework: Windows 10 (selected versions), Windows 11 (selected versions), Windows Server 2016, Windows Server 2022; .NET: Linux, macOS, Microsoft Windows

See Also