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