Example #1
0
 /// <summary>
 /// Returns true if the IParameterSymbol matches the specified reflection type.
 /// </summary>
 /// <param name="parameter">
 /// The type being extended.
 /// </param>
 /// <param name="type">
 /// The reflection type.
 /// </param>
 /// <returns>
 /// True if they match, false otherwise.
 /// </returns>
 public static Boolean IsType(this IParameterSymbol parameter, Type type) => parameter.GetTypesQualifiedAssemblyName().Equals(type.AssemblyQualifiedName, StringComparison.Ordinal);