|
Is there an advanced article which I can read that can explain how memory is allocated for different types (value and reference) in .net framework.
for example we know that value types are allocated space on a stack, but how is that managed?
Also how ...
Started by MOZILLA on
, 5 posts
by 5 people.
Answer Snippets (Read the full thread at stackoverflow):
The heap the fields of the object stored ....
Reference types are allocated on the heap.
When a method is called the amount of space required by value types is known in advance (it can the method exits it shrinks back to it's previous level.
|
|
Do anyone knows the link to the different types of name for available CATransition.
Like ripple,swift....
I want to know all the available names.
Started by rkbang on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
There is no "ripple" or "swift-libraries-to-do-cool-view-transitions-in-iphone-os
Here are the available types..
There's a link to the list in the documentation for -type and -subType ).
|
|
While coding we can use C# native data types as well as .NET CTS types. I am curious to know which data type should I use while declaring any variable. I found somewhere that we should use c# native datatype while I believe we should use CTS Type as in...
Started by marshalprince on
, 4 posts
by 4 people.
Answer Snippets (Read the full thread at stackoverflow):
The makers of the .NET framework recommend using the native C# types in the .NET.
So
int x in this answer.
C# native types are compiled to EXACTLY the same IL code as their System.* counterparts.
|
Ask your Facebook Friends
|
Why aren't option types like "int option" compatible with nullable types like "Nullable"?
I assume there is some semantic reason for the difference, but I can't figure what that is.
An option in F# is used when a value may or may not exist. An option ...
Started by Jonathan Allen on
, 5 posts
by 5 people.
Answer Snippets (Read the full thread at stackoverflow):
See this question-type-work-in-f
Again, this is from....
So you can't have a
Nullable<Key difference is that must test the option type to see if it has a value.
Works on value types, whereas option is a normal generic type.
|
|
I have a class with a Property called 'Value' which is of type Object. Value can be of any type, a structure, a class, an array, IList etc.
My problem is with the setter and determining whether the value has changed or not. This is simple enough for value...
Started by Jules on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
Could always use generics and make your Value of type IEquatable<T> instead of type object.
|
|
Does anyone have any good links for developing custom field and content types that doesn't involve using VSeWSS? Most of the stuff I have seen on the web requires installing VSeWSS, I would rather build them from scratch with just VS2005.
Thanks
Started by AdamBT on
, 6 posts
by 6 people.
Answer Snippets (Read the full thread at stackoverflow):
I understand the idea of doing it by hand for the custom content types and....
However, if you want to avoid VSeWSS, is using another Visual Studio add-in an option? WSPBuilder includes templates for Custom Field types.
Types either.
|
|
If there are types that I want to modify to meet the project requirements, what type of restrictions are there for this?
By modifying I mean:
Finding the type you are interested that is closest to what you need. Using the reflector to disassemble it. ...
Started by Joan Venge on
, 5 posts
by 5 people.
Answer Snippets (Read the full thread at stackoverflow):
Just how much Microsoft code do you want to have ... .
If you're intending on copying the functionality into a new type, then you'd probably have to bring in a load of other internal types and potentially other oddities.
To consult a lawyer.
|
|
Hi,
I know C# has both value and reference types, but how can you do a this:
int age = 100; string blah = age.ToString();
If age is a value type, how does it have a ToString method on it? Does it get converted to an object ONLY when required internally...
Started by Blankman on
, 8 posts
by 8 people.
Answer Snippets (Read the full thread at stackoverflow):
All interface types and type parameter for value types which attempt to call a method from System.Object is this:
If the value type has overridden the....
Array, nullable and delegate types eventually derive from object.
|
|
I was chatting with Sadek Drobi on twitter when be brought up that F# didn't seem to support Infinite Types. It turns out that in C# you can do something along these lines:
delegate RecDelegate<T> RecDelegate<T>(T x);
However, after some experimentation...
Started by Rick Minerich on
, 4 posts
by 4 people.
Answer Snippets (Read the full thread at stackoverflow):
type A = { A : A } let rec a : A = { A = a }
I'dtype d<'T> = delegate of 'T -> d<'T> //' let del : d<int> = null let anotherDel = del.Invoke(1).Invoke(2).Invoke....
SpecialF)
Recursive record types should work as well.
|
|
I have an extension method that I would like to overload so it can handle both reference types and nullable value types. When I try to do this, however, I get "Member with the same signature is already declared." Can C# not use the where qualifier on ...
Started by Joseph Sturtevant on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
From Differences Between C++ implementation of a template ....
Public static T Coalesce< but different internals based on the passed-in type, that isn't possible in C#.
This works if the SqlDataReader.Item[string] property type is object .
|