Results 1 to 6 of 6

Thread: slice2cs 3.3.0 Improvements

  1. #1
    apwd is offline Registered User
    Name: Cory Thomas
    Organization: Altep, Inc.
    Project: Distributed job processing
    Join Date
    Oct 2008
    Posts
    9

    slice2cs 3.3.0 Improvements

    Here are couple of minor and easy tweaks for slice2cs:

    1. Add System.CodeDom.Compiler.GeneratedCodeAttribute to all the classes in the resulting .cs file. This notifies code analysis tools, such as FXCop, that the code is generated and can be (optionally) ignored.

    2. Add "#pragma warning disable 1591" to the top of each generated cs file. This suppresses the "Missing XML comments" warning when you enable generating an XML documentation file for your project. Ideally, all the types and members would be documented as this would provide Intellisense in Visual Studio, but the easy way is to just disable the warning for the file.

    3. This might be a little more work, but a "csartial" metadata directive that would add the partial keyword to a class. This would make it possible to add methods, properties, etc to a class that are C# specific without deriving a new type.

  2. #2
    michi's Avatar
    michi is offline Registered User
    Name: Michi Henning
    Organization: Triodia Technologies
    Project: I have a passing interest in Ice :-)
    Join Date
    Feb 2003
    Location
    Brisbane, Australia
    Posts
    1,055
    Thanks for the suggestions! We'll have a look at this for the next major release.

  3. #3
    nachiket is offline Registered User
    Name: Nachiket Shah
    Organization: Barclays Capital
    Project: FLOW
    Join Date
    Oct 2008
    Posts
    3
    Hi michi,

    Are partial classes available in 3.4 release?

  4. #4
    michi's Avatar
    michi is offline Registered User
    Name: Michi Henning
    Organization: Triodia Technologies
    Project: I have a passing interest in Ice :-)
    Join Date
    Feb 2003
    Location
    Brisbane, Australia
    Posts
    1,055
    Yes. If you grab 3.4b, you'll find that classes, interfaces, structs, and exceptions are now generated as partial.

    Cheers,

    Michi.

  5. #5
    masariello is offline Registered User
    Name: Alessio Massaro
    Organization: VTB Capital
    Project: Quantitative Analytics Library
    Join Date
    Apr 2010
    Posts
    5
    Hi Michi,

    now that item 3 (partial classes) is out in 3.4, when do you think Cory's items 1 (GeneratedCodeAttribute) and 2 (disable warning 1591) will be released?

    Cory calls them minor tweaks, but these simple features would make a big difference in my project, as the work-arounds/consequences are rather intrusive.

    Re item 2
    If a #pragma looks ugly, prepending a line with just a "///" before every undocumented class, interface and method will do just as fine.

    Thanks

  6. #6
    bernard's Avatar
    bernard is offline ZeroC Staff
    Name: Bernard Normier
    Organization: ZeroC, Inc.
    Project: Ice
    Join Date
    Feb 2003
    Location
    Palm Beach Gardens, FL
    Posts
    1,294
    Hi Alessio,

    Welcome to our forums!

    These features are under consideration, but it's unclear when we'll get to them.

    If you are working on a commercial project or can't wait, please contact sales@zeroc.com and I am sure we'll be able to help.

    Thanks,
    Bernard
    Bernard Normier
    ZeroC, Inc.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. slice2cs crash
    By ngarimu in forum Help Center
    Replies: 10
    Last Post: 09-09-2009, 11:37 AM
  2. Sequences with slice2cs 3.3.0
    By die_gestalt in forum Help Center
    Replies: 4
    Last Post: 08-14-2008, 12:40 PM
  3. Patch for slice2cs, release 3.0
    By michi in forum Patches
    Replies: 0
    Last Post: 11-18-2005, 01:45 PM
  4. slice2cs - no output
    By kwaclaw in forum Help Center
    Replies: 8
    Last Post: 06-24-2005, 06:52 PM
  5. Possible bug in slice2cs version 1.5
    By wodi in forum Bug Reports
    Replies: 3
    Last Post: 07-27-2004, 10:06 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •