2010-10-20 17:43:14 +02:00
|
|
|
using System;
|
|
|
|
namespace cs2jTest.Various.Features
|
|
|
|
{
|
|
|
|
public class Various
|
|
|
|
{
|
|
|
|
public Various ()
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
|
|
|
public string TestRWProperty {get; set;}
|
|
|
|
|
|
|
|
public string get_TestRWProperty() {
|
|
|
|
return "hello";
|
|
|
|
}
|
|
|
|
|
|
|
|
private string _testROProperty = null;
|
|
|
|
public string TestROProperty {
|
|
|
|
get { return _testROProperty; }
|
|
|
|
}
|
|
|
|
private string _testWOProperty = null;
|
|
|
|
public string TestWOProperty {
|
|
|
|
set { _testWOProperty = value;}
|
|
|
|
}
|
|
|
|
|
2010-10-20 18:51:41 +02:00
|
|
|
public static explicit operator Various(int i)
|
|
|
|
{
|
|
|
|
return new Various();
|
|
|
|
}
|
|
|
|
|
|
|
|
public static implicit operator Various(string i)
|
|
|
|
{
|
|
|
|
return new Various();
|
|
|
|
}
|
|
|
|
|
|
|
|
public static explicit operator bool(Various v)
|
|
|
|
{
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
|
|
|
|
public static implicit operator string(Various v)
|
|
|
|
{
|
|
|
|
return "Various";
|
|
|
|
}
|
|
|
|
|
|
|
|
|
2010-10-20 17:43:14 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|