Questions tagged as 'tipos'

3
answers

Voidable types in Java equivalent to those in C #, possible?

The main purpose of this question is to contribute content to Stack Overflow in Spanish In C # we can convert data types (that do not accept the null value) to be nullable; assigning null to this type of data, produces a syntax error since C...
asked by 04.05.2018 / 00:43
1
answer

Are there enums nested in Java?

I want to make an enum of countries to which you can access their states, something similar to this: public enum SomeEnum { ARGENTINA { BUENOS_AIRES; } UNITED_STATES { CALIFORNIA, FLORIDA, NEW_YORK, ALASKA;...
asked by 05.10.2016 / 13:07
4
answers

Obtain object type in c #

Suppose the following code: public struct Result { public object objectResult public Type objectType; } Result resultado = CualquierFuncion(); The CualquierFuncion function would be something like this: public Result Cualq...
asked by 26.05.2017 / 13:56
1
answer

Differences between "foo instanceof Type" and "foo.getClass () == Type.class / fuu.getClass ()"

When determining if an object belongs to a type, basically one of these two solutions is used: foo instanceof Tipo; O foo.getClass() == Tipo.class; The question is: What advantages and disadvantages does each one offer and in which cas...
asked by 30.11.2016 / 12:06
1
answer

Types ShortString, AnsiChar and AnsiString in Delphi Tokyo for Linux

In Delphi Tokyo for Linux, what are the equivalent types of: ShortString AnsiChar AnsiString I send this block of code to show how these types work for Windows but for Linux not: program Project1; {$APPTYPE CONSOLE} {$R *.res...
asked by 07.09.2018 / 16:10