hi everybody,
let's say we have following slice:
while working with c# i'd like to use System.DateTime.Code:class IceDateTime { long ticks };
so what would solve this problem is:
add implicit conversion operators to the generated class:
Code:public static implicit operator IceDateTime(System.DateTime val) { IceDateTime rtn = new IceDateTime(); rtn.ticks = val.Ticks; return rtn; } public static implicit operator System.DateTime(IceDateTime val) { return new DateTime( val.ticks ); }
this works fine - but i don't like the idea of modifying generated code.
and this also doesn't work for sequence<IceDateTime> or IceDdateTime being a member of another class/struct.
so - let me know your ideas!
THX & CU Tom

Reply With Quote
.