-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathUtil.cs
More file actions
30 lines (27 loc) · 729 Bytes
/
Util.cs
File metadata and controls
30 lines (27 loc) · 729 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
25
26
27
28
29
30
using System;
using System.Collections.Generic;
using System.Text;
namespace TestConsole
{
public static class Util
{
public static T Coalesce<T>(T FirstObject, T SecondObject) where T : class
{
if (FirstObject != null)
return FirstObject;
else
return SecondObject;
}
public static int ms(string v)
{
return 0; throw new NotImplementedException();
}
//public static object Coalesce(object FirstObject, object SecondObject )
//{
// if (FirstObject != null)
// return FirstObject;
// else
// return SecondObject;
//}
}
}