473,809 Members | 2,739 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Make a C# program without using class

23 New Member
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 1809
PsychoCoder
465 Recognized Expert Moderator Contributor
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
sentimental37
23 New Member
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
rekedtechie
51 New Member
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 New Member
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
2445
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
1746
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 after the <form...> executes. Instead, I want to upload the files, then execute a <form...> for another purpose. Any help would be appreciated. Thanks, Don ----== Posted via Newsfeeds.Com - Unlimited-Uncensored-Secure Usenet News==----...
92
9916
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 someone helps me... Urgent - Please reply soon ! Thanks, Raghu
4
2722
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
2546
by: muzammil azmi | last post by:
how can i compile/run a program without using semicolonin the program
1
1391
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
1254
by: saroravi | last post by:
How can we write a cobol program without using session table. how Front end (PB) retrieve the data
2
1344
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 "full blown" VB .net program that doesn't use classes?
1
1607
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. Now to my question if I check the connection after the SqlDataAdapter has been created the connection is then closed ? So when does the SqlDataAdapter open and close the DataAdapter ?
0
9722
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10643
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
10391
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,...
0
9200
agi2029
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...
0
6881
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5550
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5690
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4333
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
2
3862
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.