Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 842589
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T05:59:17+00:00 2026-05-15T05:59:17+00:00

I am trying to use the LINQ to CSV project in silverlight (its a

  • 0

I am trying to use the LINQ to CSV project in silverlight (its a great project), because its open sourced i figured i could just recompile as a silverlight class library but unfortunately it appears to use a feature not available in silverlight. The TypeDescriptor.GetConverter method.

It uses this to find type converters to properly parse the csv columns to their corresponding CLR types. I have no problem making changes to the linqtocsv sources to make it work in Silverlight, but i just don’t know what an equivalent operation would be in silverlight. Various google searches have brought me to this page, but all that says is that the XAML parser has a way of doing this (but it doesn’t say how to access this functionality).

In a nutshell, the question is:

how do i replicate the functionality of TypeDescriptor.GetConverter?

I don’t necessarily need an exact drop in replacement, i just want to know a good way to do this without hardcoding a bunch of type <—> typeconverter associations.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-15T05:59:17+00:00Added an answer on May 15, 2026 at 5:59 am

    On the light frameworks you have limited options; I wouldn’t shy away from a little hard-coding, especially if you only need to support the core types. It will also be simpler and faster than the full TypeConverter option. Something like:

        static object Parse(Type type, string s)
        {
            switch (Type.GetTypeCode(type))
            {
                case TypeCode.Boolean: return bool.Parse(s);
                case TypeCode.Byte: return byte.Parse(s);
                case TypeCode.Char: return s[0];
                case TypeCode.DateTime: return DateTime.Parse(s);
                    ...
            }
        }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Trying to use Linq to SQL for a small project I'm working on at
While trying to use LINQ in a .NET 2.0 Windows Forms project I got:
I'm trying to use linq to sql for my project (very short deadline), and
I'm trying to use Linq to SQL to return an IQueryable(of Project) when using
I'm trying to use LINQ to SQL to select a few specific columns from
I'm trying to use Linq to loop through all fonts in the %windir%\Fonts folder
I am trying to use LINQ to return a list of tasks that are
I'm trying to use LINQ to SQL Server in C#/.NET on Visual Studio 2010.
I am trying to use a linq expression to filter a list in a
I'm trying to get this sitemap clas s working. It appears to use LINQ,

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.