473,395 Members | 1,460 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,395 software developers and data experts.

Make a C# program without using class

Hi everyone,
Is there any way or trick to make a program that executes without using any class or class concept
Apr 22 '12 #1
4 1797
PsychoCoder
465 Expert Mod 256MB
My apologizes but I cannot understand what it is you're trying to accomplish, so can you clear this up for us :)
Apr 22 '12 #2
thanks for the response. Actually this question just struck in my mind and i thought that can i make program without using the concept of class.
Apr 23 '12 #3
maybe no..

because where i put the main() if dont have any class?

how i compile my program, if dont have any class?

csc.exe .cs? :)
Apr 23 '12 #4
RhysW
70
Due to the processes c# goes through when it is executed it is impossibble to run code without a class, a class is what is executed and called upon when the program is running. without it there is no program.

however you might be talking about making a program without a class library project, if you are then you can write a program without using a library, you could throw every part of the code in behind a form and its buttons, however, it is bad practice to do so, it is messy, and harder to debug and change, it also means the code is no longer re-useable.

so to cover

-Can i not have classes?
No, you have to have atleast 1

-Can i ignore class libraries?
Yes but its bad to do so

Rhys Whymark
Apr 24 '12 #5

Sign in to post your reply or Sign up for a free account.

Similar topics

24
by: Andy Sutorius | last post by:
Has anyone successfully created a Hello World program without using Visual Studio.NET? If so, what IDE did you use and what namespaces did you import? Thanks! Andy Sutorius
6
by: Don | last post by:
I'm trying to come up with a way within a client-side web page of uploading a couple files to a server-side PHP program without using a <form...>. I don't want to give up the page which happens...
92
by: Raghavendra R A V, CSS India | last post by:
hie.. Do any one knows how to write a C program without using the conditional statements if, for, while, do, switch, goto and even condotional statements ? It would be a great help for me if...
4
by: sekhar_ps | last post by:
how would you print 2 powers series from 0 to 100 (like pow(2,0),pow(2,1).........pow(2,100)) with out using mathematical operators
2
by: muzammil azmi | last post by:
how can i compile/run a program without using semicolonin the program
1
by: howa | last post by:
for example, I have to add Pseudo-Elements into all `p` tag? how to add it? p:first-letter { font-size: 200%; float: left } didn't work.
0
by: saroravi | last post by:
How can we write a cobol program without using session table. how Front end (PB) retrieve the data
2
by: =?Utf-8?B?d2lubGlu?= | last post by:
Hello 1) I agree that useing classes is the best way to use VB.net. The question is how do you write a VB program without using classes? 2) For my own edification where can I see an actual...
1
by: Tony Johansson | last post by:
Hello! Below is a simple program that works fine. In this program there is no explicit open for the SqlConnection instead the DataAdapter will open the Connection to the database automatically....
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: 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...
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
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
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,...
0
jinu1996
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...
0
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...

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.