public static bool IsNullableOf(this IXamlIlType type, IXamlIlType vtype) { return(type.IsNullable() && type.GenericArguments[0].Equals(vtype)); }