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);
		}
Exemple #2
0
 internal static bool IsConditionless(this PropertyNameMarker marker)
 {
     return(marker == null || (marker.Name.IsNullOrEmpty() && marker.Expression == null && marker.Type == null));
 }