|
I'm re-writing (toward publishing) one of my favorite peace of code, and I have a lot of
Field 'Object.Field' is never assigned to, and will always have its default value null
I know the reason, and it is right. Never in my code there is a Object.Field = 'value' to satisfy the compiler, but there is a Object = JsonConvert.DeserializeObject<Object>( "..." )...
Pretty compiler can't recognize it... Maybe some deep-learning...
Skipper: We'll fix it.
Alex: Fix it? How you gonna fix this?
Skipper: Grit, spit and a whole lotta duct tape.
|
|
|
|
|
|
I know... I use it, as I'm a freak of warning-less code... I just was wondering, how can we improve the compiler...
Maybe adding a few more levels of if-then-else structures will turn it to the ultimate AI compiler and I will not have to use #pragma warning...
Skipper: We'll fix it.
Alex: Fix it? How you gonna fix this?
Skipper: Grit, spit and a whole lotta duct tape.
|
|
|
|
|
Hmm, I hardly ever use fields. You don't get that warning when you use properties.
Marc
Latest Article - Create a Dockerized Python Fiddle Web App
Learning to code with python is like learning to swim with those little arm floaties. It gives you undeserved confidence and will eventually drown you. - DangerBunny
Artificial intelligence is the only remedy for natural stupidity. - CDP1802
|
|
|
|
|
.class nested public sequential ansi sealed beforefieldinit Column1
extends [mscorlib]System.ValueType
{
.field public string Name
}
.class nested public sequential ansi sealed beforefieldinit Column2
extends [mscorlib]System.ValueType
{
.field private string '<Name>k__BackingField'
.custom instance void [mscorlib]System.Runtime.CompilerServices.CompilerGeneratedAttribute::.ctor() = (
01 00 00 00
)
.custom instance void [mscorlib]System.Diagnostics.DebuggerBrowsableAttribute::.ctor(valuetype [mscorlib]System.Diagnostics.DebuggerBrowsableState) = (
01 00 00 00 00 00 00 00
)
.method public hidebysig specialname
instance string get_Name () cil managed
{
.custom instance void [mscorlib]System.Runtime.CompilerServices.CompilerGeneratedAttribute::.ctor() = (
01 00 00 00
)
.maxstack 8
IL_0000: ldarg.0
IL_0001: ldfld string CS0649.Program/Column2::'<Name>k__BackingField'
IL_0006: ret
}
.method public hidebysig specialname
instance void set_Name (
string 'value'
) cil managed
{
.custom instance void [mscorlib]System.Runtime.CompilerServices.CompilerGeneratedAttribute::.ctor() = (
01 00 00 00
)
.maxstack 8
IL_0000: ldarg.0
IL_0001: ldarg.1
IL_0002: stfld string CS0649.Program/Column2::'<Name>k__BackingField'
IL_0007: ret
}
.property instance string Name()
{
.get instance string CS0649.Program/Column2::get_Name()
.set instance void CS0649.Program/Column2::set_Name(string)
}
}
Look at the difference between struct with field and with property... There is a good reason to use fields...
Skipper: We'll fix it.
Alex: Fix it? How you gonna fix this?
Skipper: Grit, spit and a whole lotta duct tape.
|
|
|
|
|
I am autistic, and I have been going to a place called Raj Clinics to get my medications. I had an appointment yesterday, but missed it as it had been a very manic day. I tried calling this morning, and got a disconnected number message. A quick Google, and...[^]
They were such good people as well...
What do you get when you cross a joke with a rhetorical question?
The metaphorical solid rear-end expulsions have impacted the metaphorical motorized bladed rotating air movement mechanism.
Do questions with multiple question marks annoy you???
|
|
|
|
|
Very sad.
Good luck getting your meds.
- I would love to change the world, but they won’t give me the source code.
|
|
|
|
|
There are several other groups in town that have gone into 'Emergency Mode' and are taking in patients from Raj Clinics so that they can get their meds. I have already contacted one of them and am waiting on them to call back.
What do you get when you cross a joke with a rhetorical question?
The metaphorical solid rear-end expulsions have impacted the metaphorical motorized bladed rotating air movement mechanism.
Do questions with multiple question marks annoy you???
|
|
|
|
|
Wow, indeed unexpected.
|
|
|
|
|
Is an octopus a cat with just one life left?
Bad command or file name. Bad, bad command! Sit! Stay! Staaaay...
AntiTwitter: @DalekDave is now a follower!
|
|
|
|
|
A cat at 80 years old would not have much of anything left
Sin tack
the any key okay
|
|
|
|
|
My Maine Coon would have been 120 based on those numbers (8*15)
Miss that cat. Sampson won my everlasting love and respect when he went after a dog that was threatening my wife and 1 year old daughter (That was 24 years ago when he was 4).
|
|
|
|
|
This concept gave me paws, scratching my head. At first, I was mew-ted beclaws it was so strange a thought. The purrfect solution, of course, was to just give up and take a nap.
Ravings en masse^ |
---|
"The difference between genius and stupidity is that genius has its limits." - Albert Einstein | "If you are searching for perfection in others, then you seek disappointment. If you are seek perfection in yourself, then you will find failure." - Balboos HaGadol Mar 2010 |
|
|
|
|
|
...or would the octopus never pass, they would just continue to regenerate new lives.
It was broke, so I fixed it.
|
|
|
|
|
Hi All,
I tried to squash all the junk emails, & was fairly successful. Now strangely they are starting to come back...I mean how many Russian wives, Viagra, PPI settlements do I need.
|
|
|
|
|
glennPattonInThePubAGAIN wrote: Viagra It depends on how many glennPattonInThePubAGAIN wrote: Russian wives you already got!
* CALL APOGEE, SAY AARDWOLF
* GCS d--- s-/++ a- C++++ U+++ P- L- E-- W++ N++ o+ K- w+++ O? M-- V? PS+ PE- Y+ PGP t++ 5? X R++ tv-- b+ DI+++ D++ G e++>+++ h--- ++>+++ y+++* Weapons extension: ma- k++ F+2 X
* Never pay more than 20 bucks for a computer game.
* I'm a puny punmaker.
|
|
|
|
|
That was a link to the web sites I did not see...
|
|
|
|
|
The latest garbage I get are numerous offers from "AmazonCom", "Costco", "Walmart" for special gift cards that I just have to "activate" by clicking on a provided link. However, the scumbags send the messages from an email address that does not remotely reflect the genuine companies at all.
Probably from some lowlife somewhere in Russia or thereabouts.
Get me coffee and no one gets hurt!
|
|
|
|
|
I get some of those, I mean the email addresses are the give away I don't expect a multinational to have @gmail.com email... C'mon get with it...
|
|
|
|
|
I Have it from a good authority in Russia there's a South African guy that needs help to transfer a few boatloads of cash out and will pay handsomely for use of a bank account.
I'd do it myself but going away this weekend.
If you're interested, I can send him your email address...
sounds to me like if you help him you could easily pay for a whole shipping container viagra and keep a small village of Russian wives comfortable
Sin tack
the any key okay
|
|
|
|
|
There must be a way of getting them together...
|
|
|
|
|
Sorry that opportunity has been taken. I am waiting for my first payment.
Arguing with a woman is like reading the Software License Agreement. In the end, you ignore everything and click "I agree".
Anonymous
|
|
|
|
|
Spam did go down to practically nothing for a while but is now back with a vengeance.
|
|
|
|
|
good, so it's not just me then!
|
|
|
|
|
We run our email through a "washer" and the spam percentage has gone from the 60's to the 90's in the last year. That is, 9x% of our email is blocked for spam or malware.
Arguing with a woman is like reading the Software License Agreement. In the end, you ignore everything and click "I agree".
Anonymous
|
|
|
|