/// <summary>
 /// Is element of type
 /// </summary>
 public bool IsElementOfType(ITypeElement DeclaredTypeElement, string type)
 {
     if (DeclaredTypeElement == null)
     {
         return(false);
     }
     if (DeclaredTypeElement.FullName.Replace("`1", "") == type || DeclaredTypeElement.DescendsFrom(type))
     {
         return(true);
     }
     return(false);
 } // IsElementOfType(DeclaredTypeElement, type)
 /// <summary>
 /// Is element of type
 /// </summary>
 public bool IsElementOfType(ITypeElement DeclaredTypeElement, string type)
 {
     if (DeclaredTypeElement == null)
         return false;
     if (DeclaredTypeElement.FullName.Replace("`1", "") == type || DeclaredTypeElement.DescendsFrom(type))
         return true;
     return false;
 } // IsElementOfType(DeclaredTypeElement, type)