// Daniel Stodden (stodden@in.tum.de)
//
// (C) 2001 Ximian, Inc.
-//
-
+// Copyright (C) 2005 Novell, Inc (http://www.novell.com)
//
// Permission is hereby granted, free of charge, to any person obtaining
// a copy of this software and associated documentation files (the
{
private CodeCommentStatementCollection comments;
private CodeNamespaceImportCollection imports;
- private CodeTypeDeclarationCollection types;
+ //private CodeNamespaceCollection namespaces;
+ private CodeTypeDeclarationCollection classes;
private string name;
+ //int populated;
//
// Constructors
public string Name {
get {
+ if (name == null) {
+ return string.Empty;
+ }
return name;
}
set {
public CodeTypeDeclarationCollection Types {
get {
- if ( types == null ) {
- types = new CodeTypeDeclarationCollection();
+ if ( classes == null ) {
+ classes = new CodeTypeDeclarationCollection();
if ( PopulateTypes != null )
PopulateTypes( this, EventArgs.Empty );
}
- return types;
+ return classes;
}
}