Skip to content
This repository has been archived by the owner on Aug 11, 2024. It is now read-only.

Concrete Instanced Guid References #551

Merged
merged 9 commits into from
Apr 28, 2020
Merged

Conversation

StephenHodgson
Copy link
Contributor

@StephenHodgson StephenHodgson commented Apr 28, 2020

XRTK - Mixed Reality Toolkit Change Request

Overview

Previously whenever we refactored any class we were simply serializing the AssemblyQualifiedName as a string, which could lead to types being unable to be found after we either rename the class or change the namespace.

This change is backwards compatible to what we had previously.

The two classes to review:

  • SystemType
  • TypeExtensions

Submodule Changes

…work with guid reference

added guid references to all instanced classes
Copy link
Contributor

@SimonDarksideJ SimonDarksideJ left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we look to provide native GUID functions for areas where we already have GUID references and avoid needless string conversions.

Also I note you have removed some base constructor references (:Base()) and was curious why

@StephenHodgson
Copy link
Contributor Author

Can we look to provide native GUID functions for areas where we already have GUID references and avoid needless string conversions.

Mainly I'm trying to keep backwards compatibility with any references to AssemblyQualifiedName. Doing that expects that all the data is already a guid. Also serializing the AssemblyQualifiedName is the fallback in case a class doesn't have the guid attribute.

@StephenHodgson
Copy link
Contributor Author

Also I note you have removed some base constructor references (:Base()) and was curious why

They were redundant

@StephenHodgson StephenHodgson merged commit 9477e33 into development Apr 28, 2020
@StephenHodgson StephenHodgson deleted the feature/service-guids branch April 28, 2020 18:12
XRTK-Build-Bot pushed a commit that referenced this pull request Dec 25, 2020
* fixed controller popout window and type reference property drawer to work with guid reference

added guid references to all instanced classes

* PR Review Changes

* removed extra semicolon

* removed unneeded local var

* no need for ?

* removed unused members

* use const value

* removed unused reference

* fixed NRE when attempting to render mapping profile buttons
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Enhancement New feature or request Ready for review PR finished primary development, open for review
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants