StackOverflow Questions for Tag: boxing

pencilCake
pencilCake

Reputation: 53323

Do boxing and unboxing have the same performance hit?

Score: 10

Views: 3613

Answers: 3

Read More
kaalus
kaalus

Reputation: 4574

Is it possible to get a pointer to a boxed unmanaged value type?

Score: 0

Views: 430

Answers: 1

Read More
controlflow
controlflow

Reputation: 6737

Boxing Occurrence in C#

Score: 93

Views: 5810

Answers: 5

Read More
user3163495
user3163495

Reputation: 3682

Do strings get boxed in C#?

Score: 2

Views: 210

Answers: 3

Read More
Theodor Zoulias
Theodor Zoulias

Reputation: 43996

How to box and unbox a struct with type safety

Score: 1

Views: 292

Answers: 2

Read More
Alexander Flesher
Alexander Flesher

Reputation: 31

In C#, Why Is A Stack of Structs Referencing Reference Types Slower to Push Than Structs Containing Value Types?

Score: 1

Views: 79

Answers: 0

Read More
Vince
Vince

Reputation: 15128

Integer -> double unboxes, but Double -> int doesn't unbox. Why?

Score: 4

Views: 245

Answers: 4

Read More
Tadeusz
Tadeusz

Reputation: 6913

Is value type boxing when it is a field of reference type?

Score: 6

Views: 1354

Answers: 6

Read More
fbilhaut
fbilhaut

Reputation: 76

How does boxing a trait affect lifetime of parameters passed to it ? (with a very specific example)

Score: 5

Views: 161

Answers: 2

Read More
user1553932
user1553932

Reputation: 153

Why Enum's HasFlag method need boxing?

Score: 15

Views: 8080

Answers: 9

Read More
IamIC
IamIC

Reputation: 18269

CIL shows `box` ops when the generic type is constrained to a class

Score: 1

Views: 55

Answers: 1

Read More
Seva Alekseyev
Seva Alekseyev

Reputation: 61398

(Un)boxing primitive arrays in Java

Score: 16

Views: 11664

Answers: 4

Read More
Rober
Rober

Reputation: 726

Boxing value type to send it to a method and get the result

Score: 8

Views: 1515

Answers: 3

Read More
user926958
user926958

Reputation: 9585

How to convert byte[] to Byte[] and the other way around?

Score: 100

Views: 133946

Answers: 9

Read More
Ashika Umanga Umagiliya
Ashika Umanga Umagiliya

Reputation: 9178

How does Boxing move data from stack to heap?

Score: 3

Views: 657

Answers: 1

Read More
Douar Gwenn
Douar Gwenn

Reputation: 107

How to reach the value of an object nested within an object?

Score: 0

Views: 96

Answers: 1

Read More
Gilles jr Bisson
Gilles jr Bisson

Reputation: 533

Why can't C# cast an object containing a boxed int to a double?

Score: 1

Views: 533

Answers: 2

Read More
Dan R
Dan R

Reputation: 1494

Why doesn't IntStream.spliterator() return Spliterator.OfInt since Java 11?

Score: 3

Views: 116

Answers: 0

Read More
Ahmad Akra
Ahmad Akra

Reputation: 535

C#: How to set a property that has a value type using reflection without boxing or unboxing?

Score: 2

Views: 693

Answers: 1

Read More
kolinunlt
kolinunlt

Reputation: 345

Why does invoking a method with a short choose the `void (int)` overload over `void (Short)`?

Score: 5

Views: 101

Answers: 1

Read More
PreviousPage 2Next