This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<staticContent lockAttributes="isDocFooterFileName"> | |
<mimeMap fileExtension=".323" mimeType="text/h323" /> | |
<mimeMap fileExtension=".aaf" mimeType="application/octet-stream" /> | |
<mimeMap fileExtension=".aca" mimeType="application/octet-stream" /> | |
<mimeMap fileExtension=".accdb" mimeType="application/msaccess" /> | |
<mimeMap fileExtension=".accde" mimeType="application/msaccess" /> | |
<mimeMap fileExtension=".accdt" mimeType="application/msaccess" /> | |
<mimeMap fileExtension=".acx" mimeType="application/internet-property-stream" /> | |
<mimeMap fileExtension=".afm" mimeType="application/octet-stream" /> | |
<mimeMap fileExtension=".ai" mimeType="application/postscript" /> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public static class DictionaryExtensions | |
{ | |
/// <summary> | |
/// Returns a default value of type U if the key does not exist in the dictionary | |
/// </summary> | |
/// <param name="dic">The dictionary to search</param> | |
/// <param name="key">Key to search for</param> | |
/// <param name="onMissing">Optional default value of type U. If not specified, the C# default value will be returned.</param> | |
public static U GetOrDefault<T, U>(this Dictionary<T, U> dic, T key, U onMissing = default(U)) | |
{ |