Click here to Skip to main content
15,892,537 members
Home / Discussions / C#
   

C#

 
AnswerRe: ListView Column Sort Arrow Pin
-tusk-22-Jun-11 6:10
-tusk-22-Jun-11 6:10 
GeneralRe: ListView Column Sort Arrow Pin
-tusk-24-Jun-11 2:57
-tusk-24-Jun-11 2:57 
Question2d array in c# Pin
Aljaz11126-Feb-10 3:05
Aljaz11126-Feb-10 3:05 
AnswerRe: 2d array in c# Pin
Pete O'Hanlon26-Feb-10 3:17
mvePete O'Hanlon26-Feb-10 3:17 
GeneralRe: 2d array in c# Pin
Aljaz11126-Feb-10 3:20
Aljaz11126-Feb-10 3:20 
GeneralRe: 2d array in c# [modified] Pin
Dan Mos26-Feb-10 3:26
Dan Mos26-Feb-10 3:26 
GeneralRe: 2d array in c# Pin
harold aptroot26-Feb-10 4:24
harold aptroot26-Feb-10 4:24 
GeneralRe: 2d array in c# Pin
Aljaz11126-Feb-10 6:39
Aljaz11126-Feb-10 6:39 
GeneralRe: 2d array in c# Pin
harold aptroot26-Feb-10 6:46
harold aptroot26-Feb-10 6:46 
GeneralRe: 2d array in c# Pin
Aljaz11126-Feb-10 7:47
Aljaz11126-Feb-10 7:47 
GeneralRe: 2d array in c# Pin
harold aptroot26-Feb-10 8:05
harold aptroot26-Feb-10 8:05 
GeneralRe: 2d array in c# Pin
Pete O'Hanlon26-Feb-10 5:14
mvePete O'Hanlon26-Feb-10 5:14 
GeneralRe: 2d array in c# Pin
harold aptroot26-Feb-10 6:18
harold aptroot26-Feb-10 6:18 
GeneralRe: 2d array in c# Pin
Dan Mos26-Feb-10 6:28
Dan Mos26-Feb-10 6:28 
GeneralRe: 2d array in c# Pin
harold aptroot26-Feb-10 6:48
harold aptroot26-Feb-10 6:48 
GeneralRe: 2d array in c# Pin
Dan Mos26-Feb-10 18:25
Dan Mos26-Feb-10 18:25 
GeneralRe: 2d array in c# Pin
Pete O'Hanlon26-Feb-10 9:44
mvePete O'Hanlon26-Feb-10 9:44 
GeneralRe: 2d array in c# Pin
harold aptroot26-Feb-10 9:53
harold aptroot26-Feb-10 9:53 
GeneralRe: 2d array in c# Pin
Pete O'Hanlon26-Feb-10 10:07
mvePete O'Hanlon26-Feb-10 10:07 
GeneralRe: 2d array in c# Pin
harold aptroot26-Feb-10 10:22
harold aptroot26-Feb-10 10:22 
GeneralRe: 2d array in c# Pin
Pete O'Hanlon26-Feb-10 10:28
mvePete O'Hanlon26-Feb-10 10:28 
AnswerRe: 2d array in c# Pin
harold aptroot26-Feb-10 3:53
harold aptroot26-Feb-10 3:53 
AnswerRe: 2d array in c# Pin
Dave Doknjas26-Feb-10 12:09
Dave Doknjas26-Feb-10 12:09 
The Java rectangular array in your example is a special case in Java since Java only has jagged arrays (arrays of arrays), not multidimensional arrays, but allows a special rectangular jagged array initialization.
The C# equivalent to this is:
[code]//ORIGINAL LINE: private int[][] avtomat = new int[maxState][256];
//JAVA TO VB & C# CONVERTER NOTE: The following call to the 'RectangularArrays' helper class reproduces the rectangular array initialization that is automatic in Java:
private int[][] avtomat = RectangularArrays.ReturnRectangularIntArray(maxState, 256);

//----------------------------------------------------------------------------------------
// Copyright © 2008 - 2010 Tangible Software Solutions Inc.
// This class can be used by anyone provided that the copyright notice remains intact.
//
// This class provides the logic to simulate Java rectangular arrays, which are jagged
// arrays with inner arrays of the same length.
//----------------------------------------------------------------------------------------
internal static class RectangularArrays
{
internal static int[][] ReturnRectangularIntArray(int Size1, int Size2)
{
int[][] Array = new int[Size1][];
for (int Array1 = 0; Array1 < Size1; Array1++)
{
Array[Array1] = new int[Size2];
}
return Array;
}
}[/code]

David Anton
Convert between VB, C#, C++, & Java
www.tangiblesoftwaresolutions.com
Questionsplitting a long string Pin
manustone26-Feb-10 2:53
manustone26-Feb-10 2:53 
AnswerRe: splitting a long string Pin
Keith Barrow26-Feb-10 2:56
professionalKeith Barrow26-Feb-10 2:56 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.