Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/corefx.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAlexander Köplinger <alex.koeplinger@outlook.com>2019-10-08 22:02:59 +0300
committerGitHub <noreply@github.com>2019-10-08 22:02:59 +0300
commit3baa35f64016a2a1acb62dcfb5c29cca6461ae9c (patch)
tree34720b81b910d83dda690a8135fbf7b807d7367b /src
parent10a41e9f9828b3e299215406eadfde2ee4c9b29f (diff)
Enable Color TypeConverter on mobile profiles (#356)
We need to ifdef out the `Editor` attribute since System.Drawing.Design is not there on mobile.
Diffstat (limited to 'src')
-rw-r--r--src/System.Drawing.Primitives/src/System/Drawing/Color.cs2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/System.Drawing.Primitives/src/System/Drawing/Color.cs b/src/System.Drawing.Primitives/src/System/Drawing/Color.cs
index 2853fe7184..c9aba1ec79 100644
--- a/src/System.Drawing.Primitives/src/System/Drawing/Color.cs
+++ b/src/System.Drawing.Primitives/src/System/Drawing/Color.cs
@@ -24,8 +24,10 @@ namespace System.Drawing
#endif
#if FEATURE_TYPECONVERTER
[TypeConverter(typeof(ColorConverter))]
+#if !MOBILE && !XAMMAC_4_5
[Editor ("System.Drawing.Design.ColorEditor, " + Consts.AssemblySystem_Drawing_Design, typeof (System.Drawing.Design.UITypeEditor))]
#endif
+#endif
public readonly struct Color : IEquatable<Color>
{
public static readonly Color Empty = new Color();