ArcFM Engine Developer Guide
AddOrAppend<TK,TV> Method


If the key doesn't exist then add new item. If key already exists then append item
Syntax
'Declaration
 
<ExtensionAttribute()>
Public Shared Sub AddOrAppend
    (Of TK,TV)( _
   ByVal dictionary As Dictionary(Of TK,List(Of TV)), _
   ByVal key As TK, _
   ByVal value As List(Of TV) _
) 
'Usage
 
Dim dictionary As Dictionary(Of TK,List(Of TV))
Dim key As TK
Dim value As List(Of TV)
 
EnumerableExtensions.AddOrAppend(Of TK, TV)(dictionary, key, value)
[Extension()]
public static void AddOrAppend<TK,TV>( 
   Dictionary<TK,List<TV>> dictionary,
   TK key,
   List<TV> value
)

Parameters

dictionary
key
value

Type Parameters

TK
TV
Requirements

Target Platforms: Windows XP SP3 (32-bit and 64-bit), Windows 7 (32-bit and 64-bit)

Not all Operating Systems are supported on all products. Visit the ArcFM Solution Supported Versions page for full details.

See Also

Reference

EnumerableExtensions Class
EnumerableExtensions Members

 

 


Send Comment