@@ -460,8 +460,8 @@ private static string MakeComposite(
460
460
source . Append ( "\t ///<param name=\" index\" >The index item to get (zero based)</param>\r \n " ) ;
461
461
source . Append ( "\t ///<returns>The data component (as a type) at the requested number (ordinal)</returns>\r \n " ) ;
462
462
source . Append ( "\t ///</summary>\r \n " ) ;
463
- source . Append ( "\t public IType this[int index] { \r \n \r \n " ) ;
464
- source . Append ( "get {\r \n " ) ;
463
+ source . Append ( "\t public IType this[int index] { \r \n " ) ;
464
+ source . Append ( "\t get {\r \n " ) ;
465
465
source . Append ( "\t \t try { \r \n " ) ;
466
466
source . Append ( "\t \t \t return this.data[index]; \r \n " ) ;
467
467
source . Append ( "\t \t } catch (System.ArgumentOutOfRangeException) { \r \n " ) ;
@@ -497,7 +497,7 @@ private static string MakeComposite(
497
497
}
498
498
499
499
source . Append ( " {\r \n " ) ;
500
- source . Append ( "get {\r \n " ) ;
500
+ source . Append ( "\t get {\r \n " ) ;
501
501
source . Append ( "\t " ) ;
502
502
source . Append ( dtName ) ;
503
503
source . Append ( " ret = null;\r \n " ) ;
@@ -510,16 +510,13 @@ private static string MakeComposite(
510
510
source . Append ( "\t } catch (DataTypeException e) {\r \n " ) ;
511
511
source . Append (
512
512
"\t HapiLogFactory.GetHapiLog(this.GetType()).Error(\" Unexpected problem accessing known data type component - this is a bug.\" , e);\r \n " ) ;
513
- source . Append ( "\t throw new System.Exception (\" An unexpected error occurred\" ,e);\r \n " ) ;
513
+ source . Append ( "\t throw new DataTypeException (\" An unexpected error occurred\" , e);\r \n " ) ;
514
514
source . Append ( "\t }\r \n " ) ;
515
515
source . Append ( "\t return ret;\r \n " ) ;
516
- source . Append ( "}\r \n \r \n " ) ;
516
+ source . Append ( "\t }\r \n \r \n " ) ;
517
517
source . Append ( "}\r \n " ) ;
518
518
}
519
519
520
- /*if (correspondingControlInterface != null) {
521
- source.append(Control.getImplementation(correspondingControlInterface, version));
522
- } */
523
520
source . Append ( "}" ) ;
524
521
525
522
return source . ToString ( ) ;
0 commit comments