FaceRecognitionDotNet icon indicating copy to clipboard operation
FaceRecognitionDotNet copied to clipboard

suggestion for , amibiguous name between drawing.Image vs facerecognitionnet.image ,

Open blackholeearth opened this issue 3 years ago • 2 comments

i have this
amibiguous name between drawing.Image vs facerecognitionnet.image , amibiguous name between drawing.rectance vs facerecognitionnet.rectange , ....

FRDN Image or Rectangle is not System.Drawing . isnt it??

~~i think it would be better to rename these classes like this: ( which creastes amibigious messages in visual studio.)~~

  • ~~FRDN.Image to FRImage~~
  • ~~FRDN.rectangle to FRRectangle~~

blackholeearth avatar Jul 14 '21 14:07 blackholeearth

FRDN Image or Rectangle is not System.Drawing . isnt it??

Yes, These Image and Rectangle are in FaceRecognitionDotNet namespace.

i think it would be better to rename these classes like this

Thanks for your propose. But I will not rename this because I want to simplify library name.

takuya-takeuchi avatar Jul 14 '21 15:07 takuya-takeuchi

C#. Namespace alias fixes ambiguity error.

İ dont have to explicitly Write fullNamespace everytime .

Using System; 
Using System.Drawing;
.....
using FRImage = FaceRecognitionDotNet.Image;
using FRRect = FaceRecognitionDotNet.Rectangle;

Class Test
{
      FRImage convert (Image  img)
      {
           // Do sth
          Return. New FRImage();
      }
}



```

blackholeearth avatar Mar 07 '22 13:03 blackholeearth