blob: fa2acf7bdc5b95d97c28d65414158cccfa5851ee (
plain)
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
|
using System.Text;
namespace SharpCifs.Util.Sharpen
{
public class CharSequence
{
public static implicit operator CharSequence (string str)
{
return new StringCharSequence (str);
}
public static implicit operator CharSequence (StringBuilder str)
{
return new StringCharSequence (str.ToString ());
}
}
class StringCharSequence: CharSequence
{
string _str;
public StringCharSequence (string str)
{
this._str = str;
}
public override string ToString ()
{
return _str;
}
}
}
|