|
|
|
|||||
|
structs and ["clr:property"]
When the directive ["clr: property"] is used with structs, incorrect code is generated. Given this Slice definition:
Code:
["clr:property"]
struct Date {
byte Day;
byte Month;
short Year;
};
Code:
public Date(byte Day, byte Month, short Year)
{
this.Day = Day;
this.Month = Month;
this.Year = Year;
}
Btw, is there a reason why private fields and method parameters in the C# code are capitalized? This is a very uncommon code style for C#. Karl Last edited by kwaclaw : 09-12-2007 at 11:14 AM. Reason: Typo |
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Don't "Ice-3.1.1-VC71.msi " include the "slice2java.exe"? | Jason Gao | Help Center | 4 | 10-26-2006 12:23 PM |
| "make test" failure on Ice 3.0.1 installation. SUSE 10.1. | pchapin | Help Center | 4 | 05-22-2006 11:20 PM |
| IceGrid startup performance and CPU usage "problem" | kovacm | Comments | 11 | 12-06-2005 07:52 AM |
| Unknown property "IceBox.DBEnvName.IceStorm" for IceStorm | wwwtiger | Help Center | 1 | 11-05-2004 03:23 PM |
| Going from "in" to "out" param, using a class as a union | catalin | Help Center | 1 | 04-05-2004 09:55 AM |