tagged [object]
Convert JS object to JSON string
Convert JS object to JSON string If I defined an object in JS with: How can I convert the object to JSON? The output string should be:
- Modified
- 16 Oct at 15:42
How do I count a JavaScript object's attributes?
How do I count a JavaScript object's attributes? Suppose I have the following object in JavaScript: How do I find out how many values exist in the object?
- Modified
- 29 Mar at 20:49
JavaScript: Object Rename Key
JavaScript: Object Rename Key Is there a clever (i.e. optimized) way to rename a key in a javascript object? A non-optimized way would be:
- Modified
- 28 Jul at 16:23
Domain Driven Design, .NET and the Entity Framework
Domain Driven Design, .NET and the Entity Framework I'm new to domain driven design but want to learn it and use it for a new application. I will be using Entity Framework for data access. The basic l...
- Modified
- 16 Jan at 20:59
What are the different approaches to Object-Object mapping in .NET?
What are the different approaches to Object-Object mapping in .NET? I'm needing to do some mapping between objects (e.g. PersonModel to PersonViewModel) and am researching on the different approaches ...
- Modified
- 23 May at 10:33
What are C++ functors and their uses?
What are C++ functors and their uses? I keep hearing a lot about functors in C++. Can someone give me an overview as to what they are and in what cases they would be useful?
- Modified
- 29 Jun at 10:41
Object As Interface
Object As Interface I've got an object that implements an interface, I then find that object using reflection. How can I cast the object into the interface and then place it into a `List` ?
- Modified
- 29 Nov at 21:7
Most efficient way to convert an HTMLCollection to an Array
Most efficient way to convert an HTMLCollection to an Array Is there a more efficient way to convert an HTMLCollection to an Array, other than iterating through the contents of said collection and man...
- Modified
- 21 Oct at 18:4
Track all object references in C#
Track all object references in C# Is it possible to list all references of an object, while debugging in Visual Studio. I am using C#. I am looking for something similar to what GC does during garbage...
- Modified
- 30 Jun at 17:15
Expand/collapse section in UITableView in iOS
Expand/collapse section in UITableView in iOS Could somebody tell me the way to perform `UITableView` expandable/collapsible animations in `sections` of `UITableView` as below? ![](https://i.stack.img...
- Modified
- 6 Jan at 10:47
Java Serializable Object to Byte Array
Java Serializable Object to Byte Array Let's say I have a serializable class `AppMessage`. I would like to transmit it as `byte[]` over sockets to another machine where it is rebuilt from the bytes re...
- Modified
- 4 Aug at 17:1
dynamic vs object type
dynamic vs object type I have used the dynamic and the object type interchangeably. Is there any difference between these two types? Is there any performance implications of using one over the other? ...
Using classes with the Arduino
Using classes with the Arduino I'm trying to use class objects with the Arduino, but I keep running into problems. All I want to do is declare a class and create an object of that class. What would an...
Can I store an Object inside a button in C#
Can I store an Object inside a button in C# I am creating Buttons dynamically in my code, is there a way I can store a custom object in my button so I can use it when I press this button ?
What’s the difference between “{}” and “[]” while declaring a JavaScript array?
What’s the difference between “{}” and “[]” while declaring a JavaScript array? What’s the difference between “{}” and “[]” while declaring a JavaScript array? Normally I declare like What is the mean...
- Modified
- 27 Oct at 11:48
How to check the type of object in ArrayList
How to check the type of object in ArrayList Is there a way to get the type of object in the arraylist? I need to make an IF statment as the following (in C#): thanks
Why int can't be null? How does nullable int (int?) work in C#?
Why int can't be null? How does nullable int (int?) work in C#? I am new to C# and just learned that objects can be null in C# but `int` can't. Also how does nullable int (`int?`) work in C#?
How would one write object-oriented code in C?
How would one write object-oriented code in C? What are some ways to write object-oriented code in C? Especially with regard to polymorphism. --- See also this Stack Overflow question [Object-orientat...
How to define an empty object in PHP
How to define an empty object in PHP with a new array I do this: Is there a similar syntax for an object
Difference between object and class in Scala
Difference between object and class in Scala I'm just going over some Scala tutorials on the Internet and have noticed in some examples an object is declared at the start of the example. What is the d...
Accessing an object property with a dynamically-computed name
Accessing an object property with a dynamically-computed name I'm trying to access a property of an object using a dynamic name. Is this possible?
- Modified
- 16 Nov at 18:53
How can I check if a value is a JSON object?
How can I check if a value is a JSON object? My server side code returns a value which is a JSON object on success and a string 'false' on failure. Now how can I check whether the returned value is a ...
How to destroy an object?
How to destroy an object? As far as I know (which is very little) , there are two ways, given: Then: Other better method? Am I splitting hairs here?
- Modified
- 11 Jun at 03:21
How to access (get or set) object attribute given string corresponding to name of that attribute
How to access (get or set) object attribute given string corresponding to name of that attribute How do you set/get the values of attributes of `t` given by `x`?
- Modified
- 5 Dec at 12:42