개정판 0beae8fb
issue #660: 누락분 커밋
Change-Id: Ia040829caa4d703297ee6b5cf361e5577f2c60aa
KCOM/Common/Check_Uri.cs | ||
---|---|---|
8 | 8 |
{ |
9 | 9 |
class Check_Uri |
10 | 10 |
{ |
11 |
public static void UriCheck(string filepath)
|
|
11 |
public static void UriCheck(string uristring)
|
|
12 | 12 |
{ |
13 |
if (!(Uri.TryCreate(filepath, UriKind.Absolute, out Uri uri) && uri.Scheme == Uri.UriSchemeHttp))
|
|
13 |
if (!(Uri.TryCreate(uristring, UriKind.Absolute, out Uri uri) && uri.Scheme == Uri.UriSchemeHttp))
|
|
14 | 14 |
{ |
15 | 15 |
throw new Exception(); |
16 | 16 |
} |
17 | 17 |
} |
18 | 18 |
|
19 |
public static bool UriCheckBool(string filepath)
|
|
19 |
public static bool isUri(string uristring)
|
|
20 | 20 |
{ |
21 |
if (!(Uri.TryCreate(filepath, UriKind.Absolute, out Uri uri) && uri.Scheme == Uri.UriSchemeHttp))
|
|
21 |
if (!(Uri.TryCreate(uristring, UriKind.Absolute, out Uri uri) && uri.Scheme == Uri.UriSchemeHttp))
|
|
22 | 22 |
{ |
23 | 23 |
return false; |
24 | 24 |
} |
내보내기 Unified diff