Click here to Skip to main content
15,893,668 members

Welcome to the Lounge

   

For discussing anything related to a software developer's life but is not for programming questions. Got a programming question?

The Lounge is rated Safe For Work. If you're about to post something inappropriate for a shared office environment, then don't post it. No ads, no abuse, and no programming questions. Trolling, (political, climate, religious or whatever) will result in your account being removed.

 
GeneralRe: TFS Book? Pin
chrisseanhayes27-Jul-17 5:23
chrisseanhayes27-Jul-17 5:23 
GeneralRe: TFS Book? Pin
Greg Prosch27-Jul-17 14:35
professionalGreg Prosch27-Jul-17 14:35 
GeneralRe: TFS Book? Pin
RickZeeland28-Jul-17 23:23
mveRickZeeland28-Jul-17 23:23 
GeneralWe may ask an AI personnel... Pin
Kornfeld Eliyahu Peter26-Jul-17 9:49
professionalKornfeld Eliyahu Peter26-Jul-17 9:49 
GeneralRe: We may ask an AI personnel... Pin
Foothill26-Jul-17 9:55
professionalFoothill26-Jul-17 9:55 
GeneralRe: We may ask an AI personnel... Pin
Kornfeld Eliyahu Peter26-Jul-17 9:59
professionalKornfeld Eliyahu Peter26-Jul-17 9:59 
GeneralRe: We may ask an AI personnel... Pin
Marc Clifton27-Jul-17 2:21
mvaMarc Clifton27-Jul-17 2:21 
GeneralRe: We may ask an AI personnel... Pin
Kornfeld Eliyahu Peter27-Jul-17 7:27
professionalKornfeld Eliyahu Peter27-Jul-17 7:27 
il
.class nested public sequential ansi sealed beforefieldinit Column1
	extends [mscorlib]System.ValueType
{
	// Fields
	.field public string Name

} // end of class Column1

.class nested public sequential ansi sealed beforefieldinit Column2
	extends [mscorlib]System.ValueType
{
	// Fields
	.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
	)

	// Methods
	.method public hidebysig specialname 
		instance string get_Name () cil managed 
	{
		.custom instance void [mscorlib]System.Runtime.CompilerServices.CompilerGeneratedAttribute::.ctor() = (
			01 00 00 00
		)
		// Method begins at RVA 0x205c
		// Code size 7 (0x7)
		.maxstack 8

		IL_0000: ldarg.0
		IL_0001: ldfld string CS0649.Program/Column2::'<Name>k__BackingField'
		IL_0006: ret
	} // end of method Column2::get_Name

	.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
		)
		// Method begins at RVA 0x2064
		// Code size 8 (0x8)
		.maxstack 8

		IL_0000: ldarg.0
		IL_0001: ldarg.1
		IL_0002: stfld string CS0649.Program/Column2::'<Name>k__BackingField'
		IL_0007: ret
	} // end of method Column2::set_Name

	// Properties
	.property instance string Name()
	{
		.get instance string CS0649.Program/Column2::get_Name()
		.set instance void CS0649.Program/Column2::set_Name(string)
	}

} // end of class Column2


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.

GeneralThat was unexpected... Pin
Brisingr Aerowing26-Jul-17 7:35
professionalBrisingr Aerowing26-Jul-17 7:35 
GeneralRe: That was unexpected... Pin
  Forogar  26-Jul-17 8:03
professional  Forogar  26-Jul-17 8:03 
GeneralRe: That was unexpected... Pin
Brisingr Aerowing26-Jul-17 8:15
professionalBrisingr Aerowing26-Jul-17 8:15 
GeneralRe: That was unexpected... Pin
Rage27-Jul-17 0:41
professionalRage27-Jul-17 0:41 
GeneralThought of the day Pin
OriginalGriff26-Jul-17 5:03
mveOriginalGriff26-Jul-17 5:03 
GeneralRe: Thought of the day Pin
lopatir26-Jul-17 5:22
lopatir26-Jul-17 5:22 
GeneralRe: Thought of the day Pin
MarkTJohnson26-Jul-17 11:16
professionalMarkTJohnson26-Jul-17 11:16 
GeneralRe: Thought of the day Pin
W Balboos, GHB26-Jul-17 5:28
W Balboos, GHB26-Jul-17 5:28 
GeneralRe: Thought of the day Pin
S Houghtelin27-Jul-17 1:48
professionalS Houghtelin27-Jul-17 1:48 
GeneralSpam, Spam, wonderful Spam... Pin
glennPattonWork326-Jul-17 3:59
professionalglennPattonWork326-Jul-17 3:59 
GeneralRe: Spam, Spam, wonderful Spam... Pin
den2k8826-Jul-17 4:13
professionalden2k8826-Jul-17 4:13 
GeneralRe: Spam, Spam, wonderful Spam... Pin
glennPattonWork326-Jul-17 4:27
professionalglennPattonWork326-Jul-17 4:27 
GeneralRe: Spam, Spam, wonderful Spam... Pin
Cornelius Henning26-Jul-17 4:17
professionalCornelius Henning26-Jul-17 4:17 
GeneralRe: Spam, Spam, wonderful Spam... Pin
glennPattonWork326-Jul-17 4:26
professionalglennPattonWork326-Jul-17 4:26 
GeneralRe: Spam, Spam, wonderful Spam... Pin
lopatir26-Jul-17 4:37
lopatir26-Jul-17 4:37 
GeneralRe: Spam, Spam, wonderful Spam... Pin
glennPattonWork326-Jul-17 6:04
professionalglennPattonWork326-Jul-17 6:04 
GeneralRe: Spam, Spam, wonderful Spam... Pin
theoldfool26-Jul-17 8:39
professionaltheoldfool26-Jul-17 8:39 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.