public string PropertyName(PropertyNameMarker marker) { if (marker.IsConditionless()) return null; return !marker.Name.IsNullOrEmpty() ? marker.Name : marker.Expression != null ? this.PropertyNameResolver.ResolveToLastToken(marker.Expression) : this.TypeName(marker.Type); }
internal static bool IsConditionless(this PropertyNameMarker marker) { return(marker == null || (marker.Name.IsNullOrEmpty() && marker.Expression == null && marker.Type == null)); }