-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathClassSource.cs
49 lines (43 loc) · 1.3 KB
/
ClassSource.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
using System;
using System.Collections.Generic;
using System.Text;
namespace ABLProfilerConverter
{
class ClassSource : Source
{
public ClassSource(int Id, string Name, int CRC, string listName) : base(Id, Name, CRC, listName)
{
string[] parts = Name.Split(' ');
if (parts.Length == 1)
{
MethodName = "";
ClassName = parts[0];
}
else
{
MethodName = parts[0];
ClassName = parts[1];
}
if (ClassName.IndexOf('.') > 0)
{
PackageName = ClassName.Substring(0, ClassName.LastIndexOf('.'));
}
string[] classParts = ClassName.Split('.');
StringBuilder sb = new StringBuilder();
foreach (string classPart in classParts)
{
if (sb.Length > 0)
{
sb.Append('\\');
}
sb.Append(classPart);
}
sb.Append(".cls");
//FileName = sb.ToString();
//ClassName = ClassName.Split('.')[0];
}
public string PackageName { get; set; }
public string ClassName { get; set; }
public string MethodName { get; set; }
}
}