Questions tagged as 'propriedade'

1
answer

List all properties of a C # object?

I need to write all the primitive properties of a C # object regardless of how many "levels" I enter into those objects. I have the following object in Javascript: var objeto = { propriedade:{ valor:42 }, atributo:"foo" } The...
asked by 09.09.2015 / 23:02
1
answer

What is the difference between static :: Property, ClassName :: property, self :: property?

I know that parent::propriedade , you select the parent class property, but I am not able to differentiate these other three when I use within the scope of the class. Both work, but what's the difference?     
asked by 02.10.2017 / 20:37
2
answers

How to restrict a set of a property?

I have the following property in my class: public char Naipe { get; set; } This property can only receive one of the following values: (char)9824 (Espada) (char)9827 (Paus) (char)9829 (Copas) (char)9830 (Ouro) These are Unicode deci...
asked by 16.12.2017 / 16:13
2
answers

Compare properties of an object with properties of a list

I have a method: public void MetodoAleatorio(List<RequisicaoFisicaDTO> lstRequisicaoFisicaDtos) { RequisicaoFisicaDTO requisicao = lstRequisicaoFisicaDtos.FirstOrDefault(); } Where I get a DTO list and need to check if some prop...
asked by 12.07.2016 / 15:24
1
answer

What is the best place to make a property file available? [closed]

It has a Java project in Spring Boot that connects to the database. Consequently I have an application.yml properties file with the database connection configuration. The configuration of database is as below with the user and passwor...
asked by 29.06.2017 / 15:19
2
answers

set environment variable in application.properties

I have a project in Spring boot where in application.properties I wanted to set the file location that I'm going to process. I do not know the best way to do it. I wanted to have the parameterizable directory in an environment variable in the sy...
asked by 04.01.2017 / 12:33
2
answers

Store changed properties of a class

I need to have a list with (name and value) of the changed properties stored in the class itself. But I'm not sure what form I'm using is feasible. I have the Employee class below: public class Funcionario { public int IdFuncionario { g...
asked by 05.02.2015 / 14:16
1
answer

How to Bind the Visibility of a Label to the Size of a List

I have a list of objects of type "BasicVariable", a% of them%, and I need the Graphic Interface to show a Label when the number of items in this collection exceeds 1000, I think the binding is correct but I did not get one how the counter and UI...
asked by 31.07.2018 / 18:38
1
answer

How do I put properties inside another property? VB.net

I would like to know how I can put properties within another property, as in the example below. Example: Open / Expanded Font Property I tried to do many times in many ways, but the closest I got was the one below: Imports System.Wi...
asked by 02.07.2017 / 14:32
1
answer

Value is not added to a variable within a function

I'm doing a simple quiz program with questions and answers, with punctuation. My problem is this: I made a function so that every time the answer is right, +1 is added to the punctuation variable. public static int pontu1 { get; set; } pu...
asked by 12.03.2017 / 15:49