The methods of the ICodeSourceFile interface are listed below. For a complete list of ICodeSourceFile interface members, see the ICodeSourceFile Members topic.
ClassForName | Creates an ICodeClass reference to a class with the name specified. This will take into account any imports or namespaces that this file uses. Basically it will do a lookup using the same rules that the compiler would. |
CreateArrayCreateExpression | Constructs a new array creation expression. |
CreateCodeDOMStatement | Constructs an ICodeDOMStatement for a code statement. |
CreateLocalVariableStatement | Overloaded. [To be supplied.] |
CreateMethodInvokeExpression | Constructs a new method invoke expression. |
CreateMethodInvokeStatement | Constructs a method invoke statement. |
CreateMethodReferenceExpression | Constructs a name reference expression for a method. A name reference is basically a reference to any object in this objects namespace (or an absolute reference to any object). |
CreateNameReferenceExpression | Overloaded. [To be supplied.] |
CreateObjectCreateExpression | Constructs a new object creation expression. |
CreateParameter | Constructs a new parameter object. |
CreatePropertySetStatement | Constructs a property set statement. This represents a single property set inside of a method. |
CreateReturnValueStatement | Constructs a return value statement. |
FindPublicClasses | Gets an array of all the public classes that are defined in this file. |
GenerateUniqueDataMemberName | Overloaded. [To be supplied.] |
GetCodeGenerator | Gets the code generator for this ICodeSourceFile. |
GetDescription | Gets the description of this file. |
GetElements | Gets the collection of elements contained in this file. |
GetIgnoreCase | Gets whether case is ignored in the underlying language or not. |
GetPath | Gets the physical path of this file. This may be a URL. |
IsSelfReferenceKeyword | Determines if the token refers to the "this" or "me" object. |
IsValidIdentifier | Determines if the identifier is valid to be used. This will not check for duplicates, but rather ensure that the identifier is not a reserved word, keyword, or other illegal identifier. |
ParseStatements | Parses the given set of statements into code elements. |
ReplaceText | Replaces a section of text in the file with the sepecified text. |
ShortestClassName | Determines the shortest name using the schema that will uniquely identify the specified class, given any namesapce and imports in this file. |
ShowText | Overloaded. [To be supplied.] |
ICodeSourceFile Interface | System.ComponentModel.Design.CodeModel Namespace