473,385 Members | 2,274 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

Code Refactor - Include Namespace in existing files

Is there any simpler way to add 'Namespace' to existing classes? I have
around 6000+ classes for which i need to add 'namespace'.

Regards,
Augustin
Mar 22 '07 #1
4 1096
On Mar 22, 2:02 pm, "Augustin Prasanna" <AugustinPrasa...@hotmail.com>
wrote:
Is there any simpler way to add 'Namespace' to existing classes? I have
around 6000+ classes for which i need to add 'namespace'.

Regards,
Augustin
oh god....6000+ class ?????!!!!!!!
Perhaps you can write a consol application... to loop through every
directory and the append the cs file with required namespace...


Mar 22 '07 #2
But the problem is, how will i locate the exact location where i need to
insert the 'namespace'? The signatures might not be same. Some might have
attributes etc..

"Masudur" <mu*****@gmail.comwrote in message
news:11**********************@n76g2000hsh.googlegr oups.com...
On Mar 22, 2:02 pm, "Augustin Prasanna" <AugustinPrasa...@hotmail.com>
wrote:
>Is there any simpler way to add 'Namespace' to existing classes? I have
around 6000+ classes for which i need to add 'namespace'.

Regards,
Augustin

oh god....6000+ class ?????!!!!!!!
Perhaps you can write a consol application... to loop through every
directory and the append the cs file with required namespace...


Mar 22 '07 #3
"Masudur" <mu*****@gmail.comwrote in message
news:11**********************@n76g2000hsh.googlegr oups.com...
oh god....6000+ class ?????!!!!!!!
Sounds like he's refactoring the entire .NET Framework... :-)
Mar 22 '07 #4
Just before the start of the class and just after the end of the class?

--
David Wier
MVP/ASPInsider
http://aspnet101.com
http://aspexpress.com
"Augustin Prasanna" <Au**************@hotmail.comwrote in message
news:%2****************@TK2MSFTNGP05.phx.gbl...
But the problem is, how will i locate the exact location where i need to
insert the 'namespace'? The signatures might not be same. Some might have
attributes etc..

"Masudur" <mu*****@gmail.comwrote in message
news:11**********************@n76g2000hsh.googlegr oups.com...
On Mar 22, 2:02 pm, "Augustin Prasanna" <AugustinPrasa...@hotmail.com>
wrote:
Is there any simpler way to add 'Namespace' to existing classes? I have
around 6000+ classes for which i need to add 'namespace'.

Regards,
Augustin
oh god....6000+ class ?????!!!!!!!
Perhaps you can write a consol application... to loop through every
directory and the append the cs file with required namespace...




Mar 22 '07 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

10
by: Curt Emich | last post by:
I'm trying to create a dataset. I start by creating a connection. Then I create and configure a data adapter. Finally, I select "generate dataset" after right-clicking on the data adapter. It...
6
by: wukexin | last post by:
Help me, good men. I find mang books that introduce bit "mang header files",they talk too bit,in fact it is my too fool, I don't learn it, I have do a test program, but I have no correct doing...
2
by: puzzlecracker | last post by:
after reading some of the post I found out something rather radical to my previous understanding: that when you do #include<iostream> #include<string> #include<vector> etc compiler puts...
3
by: masood.iqbal | last post by:
In this day and age, you never say no to any work that is thrown at you ---- so when I was offered this short-term contract to convert legacy C code to C++, I did not say no. Personally I believed...
7
by: Alan Silver | last post by:
Hello, I am just looking at VWD and seeing what needs doing to take an existing site I've written by hand and importing it into VWD. I've already discovered that I need to rename my code-behind...
7
by: Alan Silver | last post by:
Hello, I have installed the 2.0 framework, and am looking at converting some of my 1.1 pages to use partial classes. I don't (yet) have VS2005, so I'm doing this by hand, but am having problems....
3
by: Robby | last post by:
Here's a brainteaser: I have some legacy C code that I cannot modify for various reasons. I would like to be able to wrap this code into a C++ class so that I can create multiple objects to...
2
by: lewisms | last post by:
Hello all, I am quite new to c++/. Net so please don't shoot me down for being a newbie. Any way I am trying to make a simple multithreading program that is just to learn the ideas behind it...
0
by: =?Utf-8?B?S2luZXRpYyBKdW1wIEFwcGxpZmUgZm9yIC5ORVQg | last post by:
Refactor .NET code using Visual Studio and Refactor! Pro Modifying the existing source code without changing its functionality is called refactoring of Source Code. Visual Studio gives us a lots of...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.