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:

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?

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:

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...

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 ...

23 May at 10:33

How much memory does a C#/.NET object use?

How much memory does a C#/.NET object use? I'm developing an application which currently have hundreds of objects created. Is it possible to determine (or approximate) the memory allocated by an objec...

24 Feb at 12:31

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?

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` ?

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...

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...

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...

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...

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? ...

1 Oct at 12:46

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...

2 Aug at 16:49

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 ?

25 Jul at 20:8

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...

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

15 Mar at 08:47

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#?

10 Jul at 07:9

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...

30 Dec at 23:15

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

29 May at 13:1

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...

19 May at 08:48

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?

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 ...

1 Apr at 16:39

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?

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`?

5 Dec at 12:42