Piranha.Extend.Fields.MediaFieldBase.GetTitle C# (CSharp) Method

GetTitle() public method

public GetTitle ( ) : string
return string
		public virtual string GetTitle()
		{
			if (this.get_Media() == null)
			{
				return null;
			}
			if (String.IsNullOrWhiteSpace(this.get_Media().get_Title()))
			{
				return this.get_Media().get_Filename();
			}
			return String.Format("{0} ({1})", this.get_Media().get_Title(), this.get_Media().get_Filename());
		}