@@ -76,7 +76,7 @@ private static void WriteCustomColor(IndentedTextWriter writer, string name, Typ
7676 writer . WriteLine ( $ "public partial struct { name } : IColor<{ typeName } >") ;
7777 using ( new CurlyBrackets ( writer ) )
7878 {
79- WriteColorBaseStaticProperties ( writer , hasRed , hasGreen , hasBlue , hasAlpha , fullyUtilized , typeName ) ;
79+ WriteNonGenericStaticProperties ( writer , hasRed , hasGreen , hasBlue , hasAlpha , fullyUtilized , typeName ) ;
8080 writer . WriteLineNoTabs ( ) ;
8181 WriteToString ( writer , hasRed , hasGreen , hasBlue , hasAlpha ) ;
8282 }
@@ -127,14 +127,14 @@ private static void WriteToString(IndentedTextWriter writer, bool hasRed, bool h
127127 }
128128 }
129129
130- private static void WriteColorBaseStaticProperties ( IndentedTextWriter writer , bool hasRed , bool hasGreen , bool hasBlue , bool hasAlpha , bool fullyUtilized , string typeName )
130+ private static void WriteNonGenericStaticProperties ( IndentedTextWriter writer , bool hasRed , bool hasGreen , bool hasBlue , bool hasAlpha , bool fullyUtilized , string typeName )
131131 {
132- writer . WriteLine ( $ "static bool IColorBase .HasRedChannel => { hasRed . ToLowerString ( ) } ;") ;
133- writer . WriteLine ( $ "static bool IColorBase .HasGreenChannel => { hasGreen . ToLowerString ( ) } ;") ;
134- writer . WriteLine ( $ "static bool IColorBase .HasBlueChannel => { hasBlue . ToLowerString ( ) } ;") ;
135- writer . WriteLine ( $ "static bool IColorBase .HasAlphaChannel => { hasAlpha . ToLowerString ( ) } ;") ;
136- writer . WriteLine ( $ "static bool IColorBase .ChannelsAreFullyUtilized => { fullyUtilized . ToLowerString ( ) } ;") ;
137- writer . WriteLine ( $ "static Type IColorBase .ChannelType => typeof({ typeName } );") ;
132+ writer . WriteLine ( $ "static bool IColor .HasRedChannel => { hasRed . ToLowerString ( ) } ;") ;
133+ writer . WriteLine ( $ "static bool IColor .HasGreenChannel => { hasGreen . ToLowerString ( ) } ;") ;
134+ writer . WriteLine ( $ "static bool IColor .HasBlueChannel => { hasBlue . ToLowerString ( ) } ;") ;
135+ writer . WriteLine ( $ "static bool IColor .HasAlphaChannel => { hasAlpha . ToLowerString ( ) } ;") ;
136+ writer . WriteLine ( $ "static bool IColor .ChannelsAreFullyUtilized => { fullyUtilized . ToLowerString ( ) } ;") ;
137+ writer . WriteLine ( $ "static Type IColor .ChannelType => typeof({ typeName } );") ;
138138 }
139139
140140 private static void WriteGenericColor ( IndentedTextWriter writer , string name , bool hasRed , bool hasGreen , bool hasBlue , bool hasAlpha )
@@ -170,7 +170,7 @@ private static void WriteGenericColor(IndentedTextWriter writer, string name, bo
170170 writer . WriteLineNoTabs ( ) ;
171171 WriteSetChannels ( writer , typeName , hasRed , hasGreen , hasBlue , hasAlpha ) ;
172172 writer . WriteLineNoTabs ( ) ;
173- WriteColorBaseStaticProperties ( writer , hasRed , hasGreen , hasBlue , hasAlpha , true , typeName ) ;
173+ WriteNonGenericStaticProperties ( writer , hasRed , hasGreen , hasBlue , hasAlpha , true , typeName ) ;
174174 writer . WriteLineNoTabs ( ) ;
175175 WriteToString ( writer , hasRed , hasGreen , hasBlue , hasAlpha ) ;
176176 }
0 commit comments