Watch, Follow, &
Connect with Us
Public Report
Report From:    [ Add a report in this area ]  
Report #:  8546   Status: Withdrawn
Conversion of some code written by Tim Jarvis in his blog
Project:   Build #:  1.0.0.5
Version:    8.0 Submitted By:   Dave Rajkumar
Report Type:  Crash / Data loss / Total failure Date Reported:  6/30/2004 4:57:27 PM
Severity:    Critical / Show Stopper Last Updated: 8/25/2005 8:56:36 AM
Platform:    All platforms Internal Tracking #:  
Resolution: None  Resolved in Build: : None
Duplicate of:  None
Voting and Rating
Overall Rating: (1 Total Rating)
1.00 out of 5
Total Votes: None
Description
Code does not convert
Steps to Reproduce:
//Submit the attached source code sample to BabelCode
private void button1_Click(object sender, System.EventArgs e)
{
   MethodInfo getRolesPrivateMethod = typeof(WindowsIdentity).GetMethod("GetRoles",
     BindingFlags.Instance | BindingFlags.NonPublic);
   string[] roles = (string[])getRolesPrivateMethod.Invoke(WindowsIdentity.GetCurrent(),null);
   StringBuilder listOfRoles = new StringBuilder();
   foreach(string s in roles)
   {
     listOfRoles.Append(s);
     listOfRoles.Append("\n");
   }
   MessageBox.Show(listOfRoles.ToString());
}
Workarounds
None
Attachment
None
Comments

None

Server Response from: ETNACODE01