Attribute Value Changed and Get and Set value of the Attribute value with C#
public static bool IsOptionSetChanged(string field, Entity target, Entity preImage) { if (target == null) { throw new ArgumentNullException(nameof(target)); } bool result = false; if (target.Contains(field)) { int? targetValue = CommonHelper.GetOptionSetValue(field, target); int? preImageValue = CommonHelper.GetOptionSetValue(field, preImage); if (!((targetValue == null && preImageValue == null) || ...