/// <summary> /// Gets the <see cref="FieldInfo"/> corresponding to the given /// <paramref name="symbol"/>. /// </summary> public static FieldInfo GetCorrespondingField(this IFieldSymbol symbol) { return(symbol.ContainingType.GetCorrespondingType().GetField(symbol.Name, symbol.GetCorrespondingBindingFlags())); }