tagged [types]

Difference between "var" and "object" in C#

Difference between "var" and "object" in C# Is the `var` type an equivalent to `Variant` in VB? When `object` can accept any datatype, what is the difference between those two?

12 Oct at 05:42

Why does typeof(string[][,]).Name return String[,][]

Why does typeof(string[][,]).Name return String[,][] I hope there is a reason that I simply don't know yet. Why does `typeof(string[][,])` return `String[,][]` as name?

9 Mar at 13:9

How to get the type of a variable in MATLAB

How to get the type of a variable in MATLAB Does MATLAB have a function/operator that indicates the type of a variable (similar to the `typeof` operator in JavaScript)?

28 Mar at 17:15

Interfaces vs Types in TypeScript

Interfaces vs Types in TypeScript What is the difference between these statements (`interface` vs `type`) in TypeScript?

Anonymous Type vs Dynamic Type

Anonymous Type vs Dynamic Type What are the real differences between anonymous type(var) in c# 3.0 and dynamic type(dynamic) that is coming in c# 4.0?

24 Dec at 14:36

What is time_t ultimately a typedef to?

What is time_t ultimately a typedef to? I searched my Linux box and saw this typedef: But I could not find the `__time_t` definition.

6 Apr at 19:49

Casting a variable using a Type variable

Casting a variable using a Type variable In C# can I cast a variable of type `object` to a variable of type `T` where `T` is defined in a `Type` variable?

7 Oct at 13:42

What is the difference between “int” and “uint” / “long” and “ulong”?

What is the difference between “int” and “uint” / “long” and “ulong”? I know about `int` and `long` (32-bit and 64-bit numbers), but what are `uint` and `ulong`?

3 Feb at 09:46

How do I check that a number is float or integer?

How do I check that a number is float or integer? How to find that a number is `float` or `integer`?

25 Jan at 09:33

How can I check if my python object is a number?

How can I check if my python object is a number? In Java the numeric types all descend from Number so I would use What is the python equivalent?

8 Nov at 09:55

cast object with a Type variable

cast object with a Type variable The following doesn't work, of course. Is there a possible way, which is pretty similar like this?

25 Jan at 15:38

Nullable Array Notation

Nullable Array Notation I am new to nullable. Is there a meaningful difference between the possible notations? `string?[] str` `string[]? str` and even `string?[]? str` seems to all be valid

2 Jun at 19:16

Explicit conversion from Single to Decimal results in different bit representation

Explicit conversion from Single to Decimal results in different bit representation If I convert into I've noticed it's bit representation differs from that of the decimal created directly. For examp...

What is the difference between String and string in C#?

What is the difference between String and string in C#? What are the differences between these two and which one should I use?

12 Sep at 10:35

Determining whether a Type is an Anonymous Type

Determining whether a Type is an Anonymous Type In C# 3.0, is it possible to determine whether an instance of `Type` represents an Anonymous Type?

What is the benefit of zerofill in MySQL?

What is the benefit of zerofill in MySQL? I just want to know what is the benefit/usage of defining `ZEROFILL` for `INT` DataType in `MySQL`? ``` `id` INT UNSIGNED ZEROFILL NOT NULL ```

27 Dec at 19:27

C# Tell static GIFs apart from animated ones

C# Tell static GIFs apart from animated ones I'll keep it short and simple; is there any way of telling static GIF images apart from animated ones? I'm using C#. Thanks

17 May at 11:43

C# datatypes vs. MySql datatypes

C# datatypes vs. MySql datatypes Does anyone has the list of conversion from MySQL data types to C# data types ? I'm having difficulties when tried to convert from smallint unsigned type into c# type.

22 Jul at 08:56

How to check if type of a variable is string?

How to check if type of a variable is string? Is there a way to check if the type of a variable in python is a `string`, like: for integer values?

19 Apr at 17:47

Which is good to use: Object.GetType() == typeof(Type) or Object is Type?

Which is good to use: Object.GetType() == typeof(Type) or Object is Type? I want to know that which statement is useful from a whether to use or

20 Oct at 09:49

Behind the scenes, what's happening with decimal value type in C#/.NET?

Behind the scenes, what's happening with decimal value type in C#/.NET? How is the `decimal` type implemented? - - - - - Thanks! I'm gonna stick with using a 64-bit long with my own implied scale.

20 Jul at 20:50

What instantiate-able types implementing IQueryable<T> are available in .Net 4.0?

What instantiate-able types implementing IQueryable are available in .Net 4.0? Within the context of C# on .Net 4.0, are there any built-in objects that implement `IQueryable`?

Can I convert long to int?

Can I convert long to int? I want to convert `long` to `int`. If the value of `long` > `int.MaxValue`, I am happy to let it wrap around. What is the best way?

What is the difference between old style and new style classes in Python?

What is the difference between old style and new style classes in Python? What is the difference between old style and new style classes in Python? When should I use one or the other?

Difference between timestamps with/without time zone in PostgreSQL

Difference between timestamps with/without time zone in PostgreSQL Are timestamp values stored differently in PostgreSQL when the data type is `WITH TIME ZONE` versus `WITHOUT TIME ZONE`? Can the diff...

21 Feb at 11:3