All Questions
Tagged with object properties
1,191
questions
1
vote
1
answer
235
views
How can I read the name of a thread in a C# application?
I'm working on a multithreaded application, written in C#.
I would like to verify if a thread is already running or not.
You might think "How easy can that be?", but there seems to be a ...
0
votes
1
answer
20
views
I've been trying this code for a for loop inplementing an array into it
const jonas = {
firstName: 'Jonas',
lastName: 'Billing',
age: 2037-1991,
job: 'teacher',
friends: ['Michael', 'Peter', 'Steven']
};
const types = [];
for (let i = 0; i < jonas.length; i++) {
...
0
votes
0
answers
25
views
How can I access an object property inside the object while inside a function in the property without a getter?(javascript)
I have this code where I want all my code to be inside one main object without exeptions:
var inputs = [];
var Ivh = {
addInput: (input, display, message, regex) => {
inputs.push([input, ...
2
votes
3
answers
59
views
Neater way to create an object
I am creating an object with values from an api response. Is there a neater way to do this?
My code:
const variables = {
name: result.data.data.table.name,
org: the_org,
val1: result.data....
0
votes
2
answers
2k
views
TypeError: object of type 'property' has no len()
I have this code of a class that contains a list _offers of custom Offer objects. For this list I created a property to allow access to it:
class OffersManager:
_offers: list[Offer] = []
...
0
votes
0
answers
33
views
Why can't I access a property of an object in a loaded array of objects in typescript?
So, I cannot wrap my mind around this problem...
Basically, I have some variables and a constructor in a class:
currentUser: UserModel | null = null;
currentServer: ServerModel | null = null;
...
1
vote
0
answers
15
views
Typescript: map nested object properties to string [duplicate]
I am wondering if it is possible to create a type which maps properties of an object to a string where if a certain property value is an object himself, it is added to the string preceded by a dot. ...
0
votes
0
answers
67
views
Creating Events in Powershell
The Task:
I'm writing a script that makes changes to an AD Object (user account) in sequential order:
Name change
Group add
Demographics change
Manager name added
Add email address
The problem:
I ...
2
votes
1
answer
708
views
typescript access object property: Element implicitly has an 'any' type
I'm working on a codebase where I need to access a value from the step property.
interface Car {
name: string;
age: number;
color: string;
step: {
something: {
onea:...
-3
votes
2
answers
167
views
System.NullReferenceException Object reference not set to an instance of an object (List) [duplicate]
public List<Faculty> Faculties {get;set;}
List<Faculty> faculties = FacultiesManager.Faculties;
Faculties.Add(something);
how can i interact with the object list
2
votes
2
answers
925
views
A way to catch any change of an object with properties
I have a simple program that's supposed to capture any change of object A. When it does detect a change, it will write down the stringified object into file A.
Now the most obvious approach would be ...
0
votes
2
answers
96
views
I want to filter an array of objects through an object property
I´m new to Javascript, I´m trying to filter an array of objects through one of the object properties (to get the object that has the biggest value of said property. How would I go about to doing that?
...
3
votes
2
answers
577
views
Is there a way of accessing the properties of an object in java by using a string to represent the property's name, just like in JavaScript?
In JavaScript you can access a property of an object in two ways:
object.property
object["property"]
In Java, I am only aware of the first way. Is there a way to access a Java object's ...
0
votes
1
answer
224
views
How can I add Nested Object List Properties to an existing Object
I'm trying to figure out how I can add an object list property to an existing object, which also has a list object property. I have 3 classes as FirstList, SecondList, and ThirdList with an Id and ...
0
votes
1
answer
48
views
While using the Object.defineProperties in JavaScript I am getting as ' undefined' on newly defined property .How to fix it..?
const object1 = {
firstName : 'Shashidhar',
lastName : 'B M ',
rollNo : 5678,
rank : 23456
}
Object.defineProperties(object1,{
property1 : {
results : 'selected'
}
});
...