15,891,248 members
Sign in
Sign in
Email
Password
Forgot your password?
Sign in with
home
articles
Browse Topics
>
Latest Articles
Top Articles
Posting/Update Guidelines
Article Help Forum
Submit an article or tip
Import GitHub Project
Import your Blog
quick answers
Q&A
Ask a Question
View Unanswered Questions
View All Questions
View C# questions
View C++ questions
View Javascript questions
View Visual Basic questions
View Python questions
discussions
forums
CodeProject.AI Server
All Message Boards...
Application Lifecycle
>
Running a Business
Sales / Marketing
Collaboration / Beta Testing
Work Issues
Design and Architecture
Artificial Intelligence
ASP.NET
JavaScript
Internet of Things
C / C++ / MFC
>
ATL / WTL / STL
Managed C++/CLI
C#
Free Tools
Objective-C and Swift
Database
Hardware & Devices
>
System Admin
Hosting and Servers
Java
Linux Programming
Python
.NET (Core and Framework)
Android
iOS
Mobile
WPF
Visual Basic
Web Development
Site Bugs / Suggestions
Spam and Abuse Watch
features
features
Competitions
News
The Insider Newsletter
The Daily Build Newsletter
Newsletter archive
Surveys
CodeProject Stuff
community
lounge
Who's Who
Most Valuable Professionals
The Lounge
The CodeProject Blog
Where I Am: Member Photos
The Insider News
The Weird & The Wonderful
help
?
What is 'CodeProject'?
General FAQ
Ask a Question
Bugs and Suggestions
Article Help Forum
About Us
Search within:
Articles
Quick Answers
Messages
Comments by samu4u (Top 42 by date)
samu4u
8-Jan-13 2:23am
View
Thanks...
samu4u
8-Jan-13 2:18am
View
how we can change this query like that !!
samu4u
26-May-12 3:13am
View
5
samu4u
24-May-12 3:15am
View
5
samu4u
18-May-12 2:56am
View
5
samu4u
18-May-12 2:55am
View
5
samu4u
2-May-12 11:47am
View
5...
Good,thanks ...
samu4u
2-May-12 9:23am
View
you said " on second and next calls you simply replace the instance of an object with another instance, and it makes the previous instance unreachable and then — everything goes like in the previous case."
but the object reference is not set to the instance of the object??
Then how it replace the instance??Both are same reference?And only one instance.. right??
samu4u
2-May-12 3:31am
View
B objb; //This will allocate memory ??
objb=new B() //What it will do??
samu4u
27-Apr-12 11:45am
View
exactly you proved...Thanks..
samu4u
27-Apr-12 2:55am
View
5
samu4u
27-Apr-12 2:55am
View
5
samu4u
17-Apr-12 5:49am
View
Thanks,
now it is more clear..
Now i got it.Because run time it will be direct memory location like low level program like 8085 programming..
Or we can say machine dependent code to the corresponding processor architecture.
samu4u
17-Apr-12 4:23am
View
I am thinking in this way, when we are declaring any variable the compiler is having a table to hold the reference value to memory with the name of the variable. So if we are taking or getting that variable table by using this reference we can get the name of the variable.
samu4u
17-Apr-12 4:13am
View
My friend said it is possible in Python.Then Why not in C#??
Thats why??
samu4u
17-Apr-12 4:10am
View
Thanks...
samu4u
17-Apr-12 3:52am
View
Sorry,
Think in this way, The AutoTransmission is possible for most of the car.So we cant able to predict which car is using autoTransmission.
The name of the car is actually the object name.So i want to get the name of object inside the same class itself.
samu4u
17-Apr-12 3:46am
View
Yes
samu4u
13-Apr-12 10:12am
View
I am sorry master...please forgive me..
samu4u
13-Apr-12 10:03am
View
This thing i tried already... thats why i given the question??(I made the mistake first...)
Everybody asking tough questions, So i made it is simple...
samu4u
13-Apr-12 10:00am
View
good...Dont feel that this is a simple question, may be people will make mistakes...
samu4u
13-Apr-12 9:58am
View
just conside i have a petrol car
class petrol:car
{
}
class car
{
private :carbody
protected:engine
public:steering
}
if the 'petrol' is inheriting from 'car'
the car is having 'carbody' also...
do u think that the car doesn't have carbody???
samu4u
13-Apr-12 9:50am
View
I am saying a derived class inherits the private members of a base class also.
samu4u
13-Apr-12 9:48am
View
Yes.
samu4u
13-Apr-12 9:41am
View
I am not asking is it visible or not..simply inherit or not??
Sure.?Check in MSDN itself again and confirm it...
samu4u
13-Apr-12 6:32am
View
If somebody asking the question means, they are expecting some answer.They thinking that ," others can understand what i suppose to mean ".
samu4u
13-Apr-12 4:53am
View
I am new to this.. thats why??
samu4u
13-Apr-12 4:24am
View
Did you felt the question is poor..??
samu4u
13-Apr-12 4:21am
View
How we can able to use GC and if we are defining Collect() method then what are the things we have to make sure..
samu4u
13-Apr-12 4:19am
View
answer is fine... i am new to this fourm..
samu4u
13-Apr-12 4:10am
View
Thanks,
But the garbage collector can understand, it will be use or not??
Or a programmer has to collect it??
samu4u
11-Apr-12 9:57am
View
I think you are correct...rounding error...
samu4u
11-Apr-12 8:50am
View
The answer is fine.I also given how to rectify it in different method..But i need to know how the compiler is doing the job for this or what is happening in background..??
samu4u
11-Apr-12 8:49am
View
it is not the problem with conversion of string to double..because it is printing exact value..
d=44.22 //double
doll=44 //int ,now there is no fractional part...
d-doll //(44.22-44) should be .22 but the result is .219999999999986
question is that how the value is loosing... data is exact...
samu4u
11-Apr-12 3:23am
View
I think may be you are wrong with the concept,even i didn't confirmed....
what i did is that i made a sample class like,
namespace SampleClassInit
{
class SampleClass
{
int x = 55;
int y = 92;
public int MethodAdd()
{
Console.WriteLine("Sample class..");
return 1;
}
}
}
and then i checked the code in ildasm assembler for the low level IL code..
So i found this ....
//IL code...
.ctor:void() method //i think this is the default constructor..
when i explore this method i seen in this way...
.method public hidebysig specialname rtspecialname
instance void .ctor() cil managed
{
// Code size 24 (0x18)
.maxstack 8
IL_0000: ldarg.0
IL_0001: ldc.i4.s 55 //In here X it is initializing
IL_0003: stfld int32 SampleClassInit.SampleClass::x
IL_0008: ldarg.0
IL_0009: ldc.i4.s 92 //In here Y it is initializing
IL_000b: stfld int32 SampleClassInit.SampleClass::y
IL_0010: ldarg.0
IL_0011: call instance void [mscorlib]System.Object::.ctor()
IL_0016: nop
IL_0017: ret
} // end of method SampleClass::.ctor
Initialization is happened inside this method..
Check it and give me the suggestion...\
Thank you..
samu4u
10-Apr-12 10:36am
View
when we will create the object, the constructor will be called and initialize the values .Before of that how the variable will be call or initialize??
samu4u
10-Apr-12 10:11am
View
how the .net or c# is managing it rather than c++??
samu4u
9-Apr-12 11:39am
View
how the compiler is managing the reference type??
i am saying about memory locations(to store the values as well as retrieve the values)...how the compiler can understand these much location i have to refer for this string??
samu4u
9-Apr-12 11:19am
View
thanks for the all answers,that is great, i got the clear picture....
one more thing,
Then why they(C# creators) made string as reference type.. why not as value type?
samu4u
9-Apr-12 11:18am
View
Deleted
thanks for the all answers,that is great, i got the clear picture....
one more thing,
Then why they(C# creators) made string as reference type.. why not as value type?
samu4u
9-Apr-12 10:11am
View
it goes directly means to an address location, so that we never want to bother
about the location..
and int allocating memory directly..and the variable directly holding data rather than pointer type or reference type.
pointer concept is clear for me...
samu4u
9-Apr-12 10:01am
View
so it will be just like an value type??
even 'int' is also doing the same thing,??
why they dint made string in that way??
so reference wont work over there... perfectly??right>??
thanks for the great explanation...
Show More