2
2
using System . Collections . Generic ;
3
3
using System . Linq ;
4
4
using System . Reflection ;
5
- using System . Text ;
6
5
using System . Threading . Tasks ;
7
6
8
7
namespace Grabacr07 . KanColleViewer . Models
@@ -22,55 +21,59 @@ public class ProductInfo
22
21
23
22
public string Title
24
23
{
25
- get { return this . _Title ?? ( this . _Title = ( ( AssemblyTitleAttribute ) Attribute . GetCustomAttribute ( this . assembly , typeof ( AssemblyTitleAttribute ) ) ) . Title ) ; }
24
+ get { return this . _Title ?? ( this . _Title = ( ( AssemblyTitleAttribute ) Attribute . GetCustomAttribute ( this . assembly , typeof ( AssemblyTitleAttribute ) ) ) . Title ) ; }
26
25
}
27
26
28
- public string Description
29
- {
30
- get { return this . _Description ?? ( this . _Description = ( ( AssemblyDescriptionAttribute ) Attribute . GetCustomAttribute ( this . assembly , typeof ( AssemblyDescriptionAttribute ) ) ) . Description ) ; }
31
- }
27
+ public string Description
28
+ {
29
+ get { return this . _Description ?? ( this . _Description = ( ( AssemblyDescriptionAttribute ) Attribute . GetCustomAttribute ( this . assembly , typeof ( AssemblyDescriptionAttribute ) ) ) . Description ) ; }
30
+ }
32
31
33
- public string Company
34
- {
35
- get { return this . _Company ?? ( this . _Company = ( ( AssemblyCompanyAttribute ) Attribute . GetCustomAttribute ( this . assembly , typeof ( AssemblyCompanyAttribute ) ) ) . Company ) ; }
36
- }
32
+ public string Company
33
+ {
34
+ get { return this . _Company ?? ( this . _Company = ( ( AssemblyCompanyAttribute ) Attribute . GetCustomAttribute ( this . assembly , typeof ( AssemblyCompanyAttribute ) ) ) . Company ) ; }
35
+ }
37
36
38
- public string Product
39
- {
40
- get { return this . _Product ?? ( this . _Product = ( ( AssemblyProductAttribute ) Attribute . GetCustomAttribute ( this . assembly , typeof ( AssemblyProductAttribute ) ) ) . Product ) ; }
41
- }
37
+ public string Product
38
+ {
39
+ get { return this . _Product ?? ( this . _Product = ( ( AssemblyProductAttribute ) Attribute . GetCustomAttribute ( this . assembly , typeof ( AssemblyProductAttribute ) ) ) . Product ) ; }
40
+ }
42
41
43
- public string Copyright
44
- {
45
- get { return this . _Copyright ?? ( this . _Copyright = ( ( AssemblyCopyrightAttribute ) Attribute . GetCustomAttribute ( this . assembly , typeof ( AssemblyCopyrightAttribute ) ) ) . Copyright ) ; }
46
- }
42
+ public string Copyright
43
+ {
44
+ get { return this . _Copyright ?? ( this . _Copyright = ( ( AssemblyCopyrightAttribute ) Attribute . GetCustomAttribute ( this . assembly , typeof ( AssemblyCopyrightAttribute ) ) ) . Copyright ) ; }
45
+ }
47
46
48
- public string Trademark
49
- {
50
- get { return this . _Trademark ?? ( this . _Trademark = ( ( AssemblyTrademarkAttribute ) Attribute . GetCustomAttribute ( this . assembly , typeof ( AssemblyTrademarkAttribute ) ) ) . Trademark ) ; }
51
- }
47
+ public string Trademark
48
+ {
49
+ get { return this . _Trademark ?? ( this . _Trademark = ( ( AssemblyTrademarkAttribute ) Attribute . GetCustomAttribute ( this . assembly , typeof ( AssemblyTrademarkAttribute ) ) ) . Trademark ) ; }
50
+ }
52
51
53
- public Version Version
54
- {
55
- get { return this . _Version ?? ( this . _Version = this . assembly . GetName ( ) . Version ) ; }
56
- }
52
+ public Version Version
53
+ {
54
+ get { return this . _Version ?? ( this . _Version = this . assembly . GetName ( ) . Version ) ; }
55
+ }
57
56
58
- public string VersionString
59
- {
60
- get { return this . _VersionString ?? ( this . _VersionString = string . Format ( "{0}{1}{2}" , this . Version . ToString ( 3 ) , this . IsBetaRelease ? " β" : "" , this . Version . Revision == 0 ? "" : " rev." + this . Version . Revision ) ) ; }
61
- }
57
+ public string VersionString
58
+ {
59
+ get { return this . _VersionString ?? ( this . _VersionString = string . Format ( "{0}{1}{2}" , this . Version . ToString ( 3 ) , this . IsBetaRelease ? " β" : "" , this . Version . Revision == 0 ? "" : " rev." + this . Version . Revision ) ) ; }
60
+ }
62
61
63
- public bool IsBetaRelease
64
- {
65
- get { return false ; }
66
- }
62
+ public bool IsBetaRelease
63
+ {
64
+ #if BETA
65
+ get { return true ; }
66
+ #else
67
+ get { return false ; }
68
+ #endif
69
+ }
67
70
68
71
69
- public IReadOnlyCollection < Library > Libraries
70
- {
71
- get
72
- {
73
- return this . _Libraries ?? ( this . _Libraries = new List < Library >
72
+ public IReadOnlyCollection < Library > Libraries
73
+ {
74
+ get
75
+ {
76
+ return this . _Libraries ?? ( this . _Libraries = new List < Library >
74
77
{
75
78
new Library ( "Reactive Extensions" , new Uri ( "http://rx.codeplex.com/" ) ) ,
76
79
new Library ( "Interactive Extensions" , new Uri ( "http://rx.codeplex.com/" ) ) ,
@@ -79,8 +82,8 @@ public IReadOnlyCollection<Library> Libraries
79
82
new Library ( "DynamicJson" , new Uri ( "http://dynamicjson.codeplex.com/" ) ) ,
80
83
new Library ( "FiddlerCore" , new Uri ( "http://fiddler2.com/fiddlercore" ) ) ,
81
84
} ) ;
82
- }
83
- }
85
+ }
86
+ }
84
87
}
85
88
86
89
public class Library
0 commit comments