Questions tagged [dynamic-class]

45 questions
0
votes
0 answers

Generate dynamic Class Object Instances from dynamic JSON string at runtime

I have a problem with dynamic objects. Here's my script: I have table of content on PostgreSql(version 13). There is a json type field on this table. The interior of this space is completely dynamic. So it doesn't always have the same json…
srkn
  • 45
  • 8
0
votes
1 answer

DynamicClass and DynamicLinq.Core

I have a class that I created dynamically. I dynamically create the properties of this class and add value to these properties. So far there is no problem. However, when I create a list of this class and make queries using…
0
votes
1 answer

Adding Classes to Dynamic JSON Values

I have a list of dynamic users with various occupations in a variety of industries, depending on their industry (health, education, construction, science, etc), I would like to add a color badge that is displayed dynamically depending on industry…
0
votes
2 answers

How to override a function in a dynamic class with actionscript?

This is for a playbook app. I have two classes: public dynamic class Bullet extends Sprite { public function update():void { x += 5; y += 5; } } public class BulletFactory { public function createFastBullet:Bullet { var…
Kenneth
  • 611
  • 2
  • 8
  • 17
0
votes
1 answer

Dynamically creating classes with specific CodeAttributeDeclarations

I have a need to have custom code attributes that output something like "DataType(DataType.Text)" I'm currently attempting to use CodeAttributeDeclarations. But, something like this adds extra parenthesis: var cad = new…
0
votes
3 answers

Dynamic Class creation and access class properties c#

I want to create a class dynamically and add properties to that class dynamically and after that I want to create a object of that class and Generic list of that class and access it something like this :
Abhay
  • 47
  • 1
  • 10
0
votes
1 answer

Issues with django rest framework using dynamic serializer

I'm have a dynamic dataset I am trying to use with the Django REST Framework by dynamically creating serializer, but it doesn't seem to process the dynamic attributes I add. Here is the code: -- views.py class DynamicReadings(generics.ListAPIView): …
bah
  • 168
  • 1
  • 6
0
votes
2 answers

Dynamic class based on string parameter

I have this: public class Blah { public int id { get; set; } public string blahh { get; set; } } public class Doh { public int id { get; set; } public string dohh { get; set; } public…
Tomo
  • 429
  • 1
  • 10
  • 24
0
votes
2 answers

How to test whether a class instance is a dynamic type in AS3?

In AS3, if a class is marked as dynamic, new properties can be added and removed at runtime, by simply setting the property or removing it with the delete keyword. I am asking whether there is a faster way to determine whether a class is dynamic…
Triynko
  • 18,766
  • 21
  • 107
  • 173
0
votes
1 answer

Reflection IL Code

I'm new to reflections. I need to create a class which inherits from a parent class. I need to create a readonly property. This property calls an existing function in the parent class by passing an argument 25. Everything works fine, except that I…
user240021
0
votes
3 answers

Getting a value of a dynamic class and dynamic property

Is it possible to get the value of a instance variable that is a class and the value needed to get is just a string? I'm getting strings that are "$user->Prop" lets say, and I want to eval() this string to get the value, but it seems the eval…
Justin T. Watts
  • 547
  • 1
  • 4
  • 16
0
votes
1 answer

Jquery: React to dynamic classes in forms

I have made a HTML form that is split up into sections. I am using Jquery to add classes to the body element depending on what sections have been filled in. By default, the body has a class of purchase-stop. When all the sections are filled in,…
big_smile
  • 1,487
  • 4
  • 26
  • 59
0
votes
1 answer

Dynamic external class loading

I trying to get experience with dynamic class loading in Java. So any comments and help are welcome. I have a program that allow the user to select a file and do some actions on it. The actions are "Commands", those are the class I try to load. The…
castors33
  • 477
  • 10
  • 26
0
votes
3 answers

AS3 Dynamic Class Dynamic Method Names

I'm clearly missing something here. I need to fill methods of dynamic AS3 class from an array (see silly example below). But when I call those methods, all of them appear to be the same method. In the example below, all methods are foobar1. If I…
Alexander Gladysh
  • 39,865
  • 32
  • 103
  • 160
0
votes
2 answers

Creating a class dynamically in actionscript

Let me present the problem first. I need to load all images that I have used in my project externally without embedding. The images are present either in skins or as icons for items in trees. I came across the IconUtility class here I was able to…
1 2
3