List Info

Thread: object creation




object creation
country flaguser name
United States
2007-02-28 06:47:24
Is there any difference in creation of objects , objA and
objB in the
following code?

public class MyClass
	{
		private object objA = new object();
		private object objB;
		public MyClass()
		{
			objB = new object();
		}
	}


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the
Google Groups "C# Community" group.
To post to this group, send email to csharpgooglegroups.com
To unsubscribe from this group, send email to
csharp-unsubscribegooglegroups.com
For more options, visit this group at http://gr
oups.google.com/group/csharp?hl=en
-~----------~----~----~----~------~----~------~--~---


[1]

about | contact  Other archives ( Real Estate discussion Medical topics )