Created
May 5, 2014 11:28
-
-
Save ArveSystad/a81af4155b00966aed8b to your computer and use it in GitHub Desktop.
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 class FileIconDescriptor<T> : UIDescriptor<T> where T : ContentData | |
{ | |
public FileIconDescriptor() | |
{ | |
Type type = GetType(); | |
string fileTypeName = type.BaseType.GetGenericArguments()[0].Name; | |
IconClass = fileTypeName.Replace("File", "").ToLower() + "Icon"; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment