DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

+ Reply to Thread
Results 1 to 2 of 2
  1. #1
    Join Date
    Mar 2006
    Posts
    100

    Another c# conversion

    Ok so I am almost done converting the program but I need one more part of a function converted the funtion take a variable of type DimeAttachment[] attachments. Here is the C# code
    Code:
    if (attachments != null)
    {
    foreach (DimeAttachment attachment in attachments)  {
    webservice.RequestSoapContext.Attachments.Add(attachment);
    }
    }
    Thanks again and also is there something easy I am missing in the way VB handles arrays vs c#?

  2. #2
    Join Date
    Nov 2003
    Location
    Portland, OR
    Posts
    8,387
    Carlos Aguilar's online code translator had no trouble with that snippet:
    Code:
    If Not attachments Is Nothing Then
        For Each attachment As DimeAttachment In attachments
            webservice.RequestSoapContext.Attachments.Add(attachment)
        Next
    End If
    Phil Weber
    http://www.philweber.com

    Please post questions to the forums, where others may benefit.
    I do not offer free assistance by e-mail. Thank you!

Similar Threads

  1. c# - Decimal conversion
    By cema in forum .NET
    Replies: 2
    Last Post: 01-18-2006, 08:00 PM
  2. Replies: 1
    Last Post: 04-18-2002, 07:36 AM
  3. Currency Conversion
    By Simon Jones in forum Java
    Replies: 0
    Last Post: 10-17-2001, 05:44 AM
  4. javascript for temperature conversion
    By kennie hall in forum Java
    Replies: 0
    Last Post: 09-27-2001, 09:58 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


Top DevX Stories

Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL


Sponsored Links