zip file ignoring directory starting with dot

C#
if you are using 
zip -r 1.zip *
this will ignore the hidden directories(dot directory)

To include the dot directory use the below format. 
it includes everything in that directory
zip -r 1.zip .
Source

Also in C#: