all groups > dotnet windows forms > april 2006 >
You're in the

dotnet windows forms

group:

Implicit conversion warning



Re: Implicit conversion warning sb
4/27/2006 8:53:11 PM
dotnet windows forms: Can you post some code?

-sb

[quoted text, click to view]

Re: Implicit conversion warning Jared
4/28/2006 12:00:00 AM
Dim s() as string
sim s2() as string

s2=s.clone



[quoted text, click to view]

Re: Implicit conversion warning Herfried K. Wagner [MVP]
4/28/2006 12:00:00 AM
"Jared" <jared@velocitynet1.com.au> schrieb:
[quoted text, click to view]

\\\
Dim s1() As String
Dim s2() As String = DirectCast(s1.Clone(), String())
///

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
Implicit conversion warning Jared
4/28/2006 12:00:00 AM
Hi,

I keep getting warnings for cloning string arrays and arrays of objects.

Should this feature just be disabled? or is ther a correct way of copying
structure.

Re: Implicit conversion warning Stoitcho Goutsev (100)
4/28/2006 9:12:32 AM
Jared,

String.Clone methods returns object. You need to cast it to string.

--
HTH
Stoitcho Goutsev (100)

[quoted text, click to view]

AddThis Social Bookmark Button