/// <summary> /// Gets the <see cref="PropertyInfo"/> corresponding to the given /// <paramref name="symbol"/>. /// </summary> public static PropertyInfo GetCorrespondingProperty(this IPropertySymbol symbol) { return(symbol.ContainingType.GetCorrespondingType().GetProperty(symbol.Name, symbol.GetCorrespondingBindingFlags())); }