Hi ,
New to dot net and C# and was wondering what is the equivalent of a
java package in dot net ?
thanks,
vivekian 10 2625
..dll
vivekian wrote: Hi ,
New to dot net and C# and was wondering what is the equivalent of a java package in dot net ?
thanks, vivekian
Namespace
"vivekian" <vi********@gma il.com> wrote in message
news:11******** **************@ i40g2000cwc.goo glegroups.com.. . Hi ,
New to dot net and C# and was wondering what is the equivalent of a java package in dot net ?
thanks, vivekian
Vivekian,
Most .NET developers do not know what a Package, is, in Java?
What is a Package in Java?
SA
"vivekian" <vi********@gma il.com> wrote in message
news:11******** **************@ i40g2000cwc.goo glegroups.com.. . Hi ,
New to dot net and C# and was wondering what is the equivalent of a java package in dot net ?
thanks, vivekian
I agree with Sharon...If I remember from my java days, it's a
namespace.
you declare the package before the class definitions:
ie
java: package mycompany.mymod ule.mysubmodule
C#: namespace
And you import packages just like you import namespaces in C#:
java: imports (or import?) mycompany.mymod ule.mysubmodule
c#: using mycompany.mymod ule.mysubmodule
//now all the classes in that package are available
Good luck,
Jared
Sorry, 1st C# line should have looked like:
C#: namespace mycompany.mymod ule.mysubmodule
You're right. Per http://msdn.microsoft.com/vstudio/ja...csharpforjava/
Top-level Declarations in Java
In Java, we can group classes together with the package keyword. A
packaged class must use the package keyword in the first executable
line of the source file. Any import statements required to access
classes in other packages appear next, and then comes the class
declaration, like so:
....
C# uses the concept of namespaces to group logically related classes
through the namespace keyword. These act similarly to Java packages,
and a class with the same name may appear within two different
namespaces. To access classes defined in a namespace external to the
current one, we use the using keyword followed by the namespace name,
as shown below:
Clint This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Ravi Tallury |
last post by:
Hi
We are having issues with our application, certain portions of it stop
responding while the rest of the application is fine. I am attaching
the Java Core dump. If someone can let me know what the issue is.
Thanks
Ravi
|
by: fabio |
last post by:
Hi, I'm writing a program for PPC and I use IBM's Websphere Device
Developper PPRO1.0 java VM. This vm is much smaller and simple than standard
vm as it has to run on small devices as handhelds. And lot of java standard
base classes are not present. I needed package java.nio.* to run stax (a xml
utility) so I copied-pasted from rt.jar the package java.nio.* and imported
it in the classpath of my project. But when I ran my class I got this...
|
by: Abdelhalim MIMOUNI |
last post by:
hi, i'm new to java, and using sun last JDK, and i'm trying to understand
how work this feature when we want to compile at command line ? i'm trying
to set the classpath to the directory of the package but still always not
working!
thank's.
--
AbdelHalim MIMOUNI
|
by: Brandon J. Van Every |
last post by:
What's better about Ruby than Python? I'm sure there's something. What is
it?
This is not a troll. I'm language shopping and I want people's answers. I
don't know beans about Ruby or have any preconceived ideas about it. I have
noticed, however, that every programmer I talk to who's aware of Python is
also talking about Ruby. So it seems that Ruby has the potential to compete
with and displace Python. I'm curious on what basis it...
|
by: Brandon J. Van Every |
last post by:
I'm realizing I didn't frame my question well.
What's ***TOTALLY COMPELLING*** about Ruby over Python? What makes you jump
up in your chair and scream "Wow! Ruby has *that*? That is SO FRICKIN'
COOL!!! ***MAN*** that would save me a buttload of work and make my life
sooooo much easier!"
As opposed to minor differences of this feature here, that feature there.
Variations on style are of no interest to me. I'm coming at this from a...
| |
by: Reed L. O'Brien |
last post by:
I see rotor was removed for 2.4 and the docs say use an AES module
provided separately... Is there a standard module that works alike or
an AES module that works alike but with better encryption?
cheers,
reed
|
by: Kunle Odutola |
last post by:
I'm trying to understand where the information in the META.INF directory
including MANIFEST.MF etc is to be found for .NET assemblies.
Also some projects such as Eclipse's OSGi kernel stores additional info in
the MANIFEST.MF file. What would be the .NET equivalent where such info can
be stored?
Kunle
--
|
by: vivekian |
last post by:
Hi ,
New to dot net and C# and was wondering what is the equivalent of a
java package in dot net ?
thanks,
vivekian
|
by: oll3i |
last post by:
package library.common;
import java.sql.ResultSet;
public interface LibraryInterface {
public ResultSet getBookByAuthor(String author);
public ResultSet getBookByName(String name);
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
|
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
| |
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
| |
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |