StackOverflow Questions for Tag: boxing

Jeremy Wiggins
Jeremy Wiggins

Reputation: 7299

Why do I get an exception when casting an object assigned with an Int16 to an Int32?

Score: 8

Views: 6026

Answers: 3

Read More
Dmitri
Dmitri

Reputation: 2982

Boxing a reference type (class)?

Score: 1

Views: 162

Answers: 0

Read More
rmin
rmin

Reputation: 1128

Tips for forcing the scala compiler to use specialized methods

Score: 5

Views: 42

Answers: 1

Read More
Doctor Coder
Doctor Coder

Reputation: 1061

C# 8 - using both nullable and non-nullable version of the type in the generic

Score: 1

Views: 68

Answers: 1

Read More
Dmitry
Dmitry

Reputation: 2168

java hashmap : enexpected behaviour for containsKey

Score: 2

Views: 45

Answers: 1

Read More
hamed n
hamed n

Reputation: 29

Upcasting and down-casting is also boxing and unboxing?

Score: 3

Views: 409

Answers: 1

Read More
palapapa
palapapa

Reputation: 959

Why does calling an unoverridden struct method require boxing?

Score: 4

Views: 93

Answers: 1

Read More
Jeff Sharp
Jeff Sharp

Reputation: 999

C# non-boxing conversion of generic enum to int?

Score: 78

Views: 28411

Answers: 11

Read More
Ravisha
Ravisha

Reputation: 3353

Does .Net typecast when an object is used in collection using generics?

Score: 0

Views: 303

Answers: 8

Read More
ZinSunrise
ZinSunrise

Reputation: 13

Why is there no extra memory allocation

Score: 1

Views: 119

Answers: 1

Read More
Aman Anas
Aman Anas

Reputation: 21

Does a default interface implementation on a struct introduce boxing?

Score: 2

Views: 32

Answers: 0

Read More
Pablo Fernandez
Pablo Fernandez

Reputation: 287770

How to convert int[] into List<Integer> in Java?

Score: 594

Views: 819447

Answers: 22

Read More
abdullah mohsin
abdullah mohsin

Reputation: 9

how do compilers refer unboxed types?

Score: 0

Views: 67

Answers: 1

Read More
EARTH H
EARTH H

Reputation: 67

In Kotlin kotest, boxing of number giving false for number less than 128

Score: 3

Views: 63

Answers: 1

Read More
Raheel Khan
Raheel Khan

Reputation: 14787

Comparing structs for equality without boxing

Score: 12

Views: 6968

Answers: 2

Read More
Santosh Bobade
Santosh Bobade

Reputation: 39

Why does Java to invoke Integer.intValue() whenever the ternary operator ends up in the else case?

Score: 2

Views: 65

Answers: 0

Read More
patvax
patvax

Reputation: 634

Using an interface implemented by a struct to not depend on concretions but to depend on abstractions (SOLID)

Score: 1

Views: 66

Answers: 0

Read More
Meister der Magie
Meister der Magie

Reputation: 163

Boxing allocation in Composite Formatting

Score: 0

Views: 86

Answers: 1

Read More
activity
activity

Reputation: 2733

Unboxing of 'map.get(key)' may produce 'NullPointerException'

Score: 7

Views: 5585

Answers: 2

Read More
patvax
patvax

Reputation: 634

Getting a pointer to a value type on the heap that updates when gc moves the value

Score: 0

Views: 46

Answers: 0

Read More
PreviousPage 1Next