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 6470267
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T06:05:28+00:00 2026-05-25T06:05:28+00:00

The reason I am asking is because I wrote an extension method to use

  • 0

The reason I am asking is because I wrote an extension method to use in Silverlight only to find out that feature magically started working for silver light.

Example

string sentence = "I am a sentence that has some words";
sentence.Contains("N"); //would return false, silverlight true
sentence.Contains("n"); //would return true, silverlight true

Why is there a special System dll in the framework for Silverlight that does the comparsion as case insenstive?

I have run into this for tons of methods, it’s kind of annoying that they either act different or are just missing in general.

  • 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-25T06:05:29+00:00Added an answer on May 25, 2026 at 6:05 am

    The reason I am asking is because I wrote an extension method to use in Silverlight only to find out that feature magically started working for silver light.

    There is a public bool string.Contains(string) method for all versions of .NET from 2.0 onwards (2.0, 3.0, 3.5, 4.0, SL 3/4 WP 7.0/7.1).

    It is interesting to note that the SL version is only listed from SL 3 / 4 – is it possible you updated from a 2.0 solution? That could then account for it.

    Otherwise, a defined method always takes precedence over an extension method, so your extension method should never be called (we can exclude .NET 1.1 since the C# 1.2 compiler does not include extension methods).

    For .NET 2.0 MSDN documents this as:

    This method performs a word (case-sensitive and culture-sensitive) search using the current culture. The search begins at the first character position of this string and continues through the last character position.

    All other versions (including Silverlight) are listed as:

    This method performs an ordinal (case-sensitive and culture-insensitive) comparison. The search begins at the first character position of this string and continues through the last character position.

    If you are seeing otherwise (please treble-check), it could be a framework error… but I’m cautiously expecting a simpler explanation.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Are there any Clojure http libraries that use the java.net.URLConnection class? Reason I'm asking
The reason for me asking this question is:- I get a real buzz out
The reason I am asking is that I am thinking of building a foot
The reason I'm asking is because IIS protects certain ASP.NET folders, like Bin, App_Data,
Is there a reason for this? I am asking because if you needed to
REASON: I'm working on an emergency alert application that needs to display information on
The reason I ask is that Stack Overflow has been Slashdotted , and Redditted
The reason I am keen to do this is that we have a wiki
The reason I want to sign the dll is because I want to add
The reason? Pure nostalgia. Anyway, there was a standard for Basic that was published

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.