-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathIconFile.cs
More file actions
24 lines (23 loc) · 697 Bytes
/
IconFile.cs
File metadata and controls
24 lines (23 loc) · 697 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
using System;
using System.Collections.Generic;
using System.Text;
using System.IO;
namespace SciLor_s_Mashed_Runner {
public class IconFile {
public String path;
public IconFile(String path) {
this.path = path;
}
public override string ToString() {
string filename = Path.GetFileNameWithoutExtension(path);
filename = filename.Substring(3);
return filename;
}
public override bool Equals(object obj) {
if (!(obj is IconFile)) return false;
IconFile icon = (IconFile)obj;
if (icon.path != this.path) return false;
return true;
}
}
}