Bugzilla – Attachment 201281 Details for
Bug 370402
Missing CS0165
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Forgot Password
Test Case
Test14.cs (text/x-csharp), 506 bytes, created by
Jonathan Pobst
on 2008-03-13 15:10:08 UTC
(
hide
)
Description:
Test Case
Filename:
MIME Type:
Creator:
Jonathan Pobst
Created:
2008-03-13 15:10:08 UTC
Size:
506 bytes
patch
obsolete
>using System; > >public class TestCase >{ > static void Main () > { > Random r = new Random (); > > MyStruct ms; > MyStruct ms2; > > if (r.Next () == 1 && OutParameter (out ms)) > Console.WriteLine ("ms"); > if (r.Next () == 1 && OutParameter (out ms2)) > Console.WriteLine ("ms2"); > > Console.WriteLine (ms.Equals (ms2)); > } > > static public bool OutParameter (out MyStruct strukt) > { > strukt.MyField = "bob"; > return true; > } >} > >public struct MyStruct >{ > public string MyField; >}
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
Actions:
View
Attachments on
bug 370402
: 201281