Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

KeyValuePair is default

KeyValuePair<U, T> defaultValue = new KeyValuePair<U, T>();
if (item.Equals(default))
{
	// Is the default
}
 
PREVIOUS NEXT
Tagged: #KeyValuePair #default
ADD COMMENT
Topic
Name
8+8 =