Page Menu
Home
DevCentral
Search
Configure Global Search
Log In
Files
F3768894
TuneToIndex.cs
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
1 KB
Referenced Files
None
Subscribers
None
TuneToIndex.cs
View Options
using
System
;
using
System.Text
;
namespace
Sycorax
{
/// <summary>
/// Tune to index in our database
/// </summary>
public
class
TuneToIndex
{
/// <summary>
/// Title
/// </summary>
public
string
Title
=
""
;
/// <summary>
/// Singer, group, ...
/// </summary>
public
string
By
=
""
;
/// <summary>
/// Comment
/// </summary>
public
string
Comment
=
""
;
/// <summary>
/// File path
/// </summary>
public
string
Path
=
""
;
/// <summary>
/// Returns a 'By - Title (Comment)' <see cref="T:System.String"></see> that represents the current <see cref="T:System.Object"></see>.
/// </summary>
/// <returns>
/// A <see cref="T:System.String"></see> that represents the current <see cref="T:System.Object"></see>.
/// By - Title (Comment)
/// </returns>
public
override
string
ToString
()
{
StringBuilder
sb
=
new
StringBuilder
();
if
(
By
.
Length
>
0
)
{
sb
.
Append
(
By
);
sb
.
Append
(
" - "
);
}
sb
.
Append
(
Title
);
if
(
Comment
.
Length
>
0
)
{
sb
.
Append
(
"("
);
sb
.
Append
(
Comment
);
sb
.
Append
(
")"
);
}
return
sb
.
ToString
();
}
}
}
File Metadata
Details
Attached
Mime Type
text/x-c++
Expires
Mon, Nov 25, 11:17 (1 d, 10 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2260065
Default Alt Text
TuneToIndex.cs (1 KB)
Attached To
Mode
rSYCORAX Sycorax
Attached
Detach File
Event Timeline
Log In to Comment