Questions tagged [custom-object]

202 questions
4
votes
1 answer

Change value of a psobject property

I have an array full of psobjects. Now I want to change some properties in each of the objects in the array. My code: [array] $objectArray = $null foreach ($row in $result) { $object = New-Object -TypeName PSObject $object | Add-Member…
TeemoBiceps
  • 386
  • 1
  • 6
  • 22
4
votes
2 answers

Finding matches in arrays of objects in Powershell

I'm using custom objects to hold the name and schema from a set of SQL Server objects. I put the objects into an array, then I get another set of objects and put those into another array. What I'd like to do now is find all exact matches between the…
Tom H
  • 46,766
  • 14
  • 87
  • 128
3
votes
0 answers

Pencilblue: Building api around custom object type

I'm trying to build an API using pencilblue, but can't figure out how to start. This question is really wide but I'm looking for examples on creating CRUD API with custom object. Thanks!
danielrvt
  • 10,177
  • 20
  • 80
  • 121
3
votes
4 answers

asp.Net GridView bind custom object with nested List

I have a List of custom object, which consist of a custom list. class person{ string name; int age; List allMyFriends; } class friend{ string name; string address; } I'trying to bind a list of these objects to a GridView and the…
derSteve
  • 751
  • 3
  • 8
  • 20
3
votes
1 answer

Object oriented style - where to define properties? VBA

I'm quite green on object oriented programming and trying to get my style right. Very often I have an object of which one the properties is a dictionary containing other objects. Call it class 'Team' that contains a class 'Player'. Now let's say…
user2491612
3
votes
2 answers

Excel Vba error: Definitions of property procedures for the same property are inconsistent

It must be something obvious but I'm stuck so maybe you guys can help me. Consider the following code inside a VBA custom object: Private pSkipTrade As Boolean Property Let SkipTrade(value As Double): If value = 0 Then pSkipTrade =…
user2491612
3
votes
3 answers

Mapping JSON objects in custom objects

I've been searching if it is possible to get a JSON dictionary or array and directly map it in a custom object whose properties have the same name as the JSON tags, but I din't find any information regarding that. I've been parsing JSON dictionaries…
AppsDev
  • 12,319
  • 23
  • 93
  • 186
3
votes
1 answer

Define custom property sets (with Add-Member?) for use in Select-Object

What I try to do is quite simple: create a custom object with some properties, and then define "groups" of properties (columns) for use in Select-Object. Let me clarify: $props = @{"Mary"=1;"Jane"=2;"Frank"=3;"John"=5;"Brenda"=6} $obj = New-Object…
Joost
  • 1,126
  • 1
  • 10
  • 19
2
votes
1 answer

How to use object comparision for custom objects in dart/flutter

I have a collection of dishes. I want to retrieve all restaurant who have a specific list of dish in his menu. My data model is this: restaurant---->rest1 | |-->menu | | --> 1: true | |…
GTF
  • 125
  • 10
2
votes
1 answer

Define as few methods as possible to get basic functionality for custom object (Julia)

I'm still a beginner with Julia, so apologies for the OOP terminology. Let X and Y be two user-defined matrices with an element type of MyType. Let I be the identity matrix. MyType, in this case, happens to be an object with a single attribute and…
Chris du Plessis
  • 1,250
  • 7
  • 13
2
votes
1 answer

404 when trying to get CRD using python client

What happened I am trying to create custom object in kubernetes using kubernetes python client, but i am unable to do so, it would be helpful if someone can explain what i am doing wrong here Traceback (most recent call last): File…
2
votes
1 answer

Adding Markers to Google Maps v3 After Map Created

I'm relatively new with using Google Maps API. Right now I am working on a project where a user can select various search filters and see results automatically show up on the map without reloading the page. My approach thus far has been to create…
2
votes
2 answers

Returning a custom class in WCF

I created WCF service that returns a custom object called XmlElementTreeNode. This is what the object looks like: [DataContract] public class XmlElementTreeNode { [DataMember] public string Name { get; set; } [DataMember] public…
Matthew Steven Monkan
  • 8,170
  • 4
  • 53
  • 71
2
votes
2 answers

Train darknet again on a bigger dataset

I just finished training YOLOv3 on darknet on my custom dataset which only had 100 images. Now i want to train it for a bigger dataset(500 images). I was wondering if there was any way i could use this pre-trained model to train on my new dataset…
2
votes
3 answers

Javascript Custom Object - Expected Identifier in IE

I'm new to creating custom object in JavaScript, so it could easily be something simple. I have these objects: function jsonObj(_id,_title,_class,_icon) { this.attr = new jsonAttrObj(_id,_title,_class); …
Bob
  • 3,074
  • 11
  • 43
  • 62
1
2
3
13 14