[an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] (none) [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive]
[an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] (none) [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive]![]() |
![]() |
![]() |
|||||||||||||||||||||||||
|
|||||||||||||||||||||||||||
![]() |
![]() |
![]() |
Har jeg misforstået dokumentationen til C# & Monodeveloper's syntax completion vs. Mono's egen dokumentationsside? Jeg skal en simpel ting som checke om en streng har et bestemt indhold, ifølge diverse C# programmeringsguider og eksempler gøres det f.eks. sådan her: using System; class Sample { public static void Main() { string s1 = "The quick brown fox jumps over the lazy dog"; string s2 = "fox"; bool b; b = s1.Contains(s2); Console.WriteLine("Is the string, s2, in the string, s1?: {0}", b); } } Ved kørsel af Mono's compiler får man dette : streng.cs(10,9): error CS0117: `string' does not contain a definition for `Contains' Nogen ideer om det skyldes mangel hos Mono eller and bla. Microsofts System.string indeholder funktioner der ikke er standard? På forhånd tak Jesper
![]() |
![]() |
![]() |
||||||||||||
|
||||||||||||||
![]() | ||||||||||||||
|
||||||||||||||
![]() |
![]() |
![]() |