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

More robust cross platform support #120

Merged
merged 1 commit into from
Apr 26, 2019

Conversation

StephenHodgson
Copy link
Contributor

@StephenHodgson StephenHodgson commented Apr 26, 2019

  • Removed the profile check for the spatial awareness data provider's profiles, that should be handled in the constructor of the respective data provider with a thrown exception if missing.

  • Moved the type null checks until after the platform check to better support false positive errors thrown when that type/assembly is probably missing because we're targeting a different platform.

  • updated TypeRefPropertyDrawer to not throw an error if the type is missing because we're targeting a different platform.

… profiles, that should be handled in the constructor of the respective data provider with a thrown exception if missing.

- Moved the type null checks until after the platform check to better support false positive errors thrown when that type/assembly is probably missing because we're targeting a different platform.
- updated typeRefPropertyDrawer to not throw an error if the type is missing because we're targeting a different platform.
@StephenHodgson StephenHodgson added the Enhancement New feature or request label Apr 26, 2019
@StephenHodgson StephenHodgson merged commit 0b2b64d into development Apr 26, 2019
@StephenHodgson StephenHodgson deleted the dev-robust-cross-platform branch April 26, 2019 19:24
@@ -330,11 +328,11 @@ private static Type[] FindTypesByName(string typeName, SystemTypeAttribute filte
var types = new List<Type>();
var filteredTypes = GetFilteredTypes(filter);

for (var i = 0; i < filteredTypes.Count; i++)
foreach (var type in filteredTypes)
Copy link
Contributor

Choose a reason for hiding this comment

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

Why change a performant FOR loop for a more expensive ForEach?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I'm not worried about the for each loops in editor code.

{
string menuLabel = FormatGroupedTypeName(types[i], grouping);
var menuLabel = FormatGroupedTypeName(type, grouping);
Copy link
Contributor

Choose a reason for hiding this comment

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

Why the sudden change of explicit types to using var, we already know the format and type for each of these.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I think it's pretty obvious that it's a string from the context.

XRTK-Build-Bot pushed a commit that referenced this pull request Apr 26, 2019
… profiles, that should be handled in the constructor of the respective data provider with a thrown exception if missing. (#120)

- Moved the type null checks until after the platform check to better support false positive errors thrown when that type/assembly is probably missing because we're targeting a different platform.
- updated typeRefPropertyDrawer to not throw an error if the type is missing because we're targeting a different platform.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants