CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 5 of 5

Threaded View

  1. #4
    Join Date
    Jun 2008
    Posts
    2,477

    Re: Parameterized type

    A boolean cannot be expressed as a number in C#. So this won't work:

    Code:
    if (0) {}
    C++ templates != C# Generics
    If you need to convert the array, I would look at the static Array.ConvertAll<T,T> method.
    I should note that I am no expert here, so someon more experienced than myself may have a better solution for you.
    Last edited by BigEd781; February 21st, 2009 at 10:42 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
  •  





Click Here to Expand Forum to Full Width

Featured