Skip to content

Dictionaries can't be internalised or deserialised #502

@pawelbaran

Description

@pawelbaran

Description:

Not sure where exactly does the issue lie, so raising it under UI.

In Grasshopper, properties of type Dictionary<TKey, TValue> get set to null at any attempt to internalise the property value or save/load file. This is particularly annoying when one creates a new object of type that has such property defaulted to an empty dictionary, which magically gets set to null after reopening the file, leading to unexpected errors.

Steps to reproduce:

  1. Open GH
  2. Create FilterRequest using the default constructor (not Create method)
  3. Try to copy the component - Equalities will be set to null in the copied component
  4. Try saving and reopening the file - Equalities will be set to null in the original component

Metadata

Metadata

Assignees

Labels

type:bugError or unexpected behaviour

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions