I want to share code from a C# project inside a VB.Net project. I want to refer a public class and its variables inside VB. So I've put both VB and C# project inside the same solution. Here is the declaration of C# class insde C# project:
public class MyUtils
{
public static byte[] zeroArray = { 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 };
....
When I want to refer it inside VB I will have below errors: 'MyUtils' is not accessible in this context because it is 'Friend'.
I have change the accessibility of every object to public in C# but I don't know how to allow access to C# class. I should add that I have not enough familiarity with VB and its inheritance mechanisms.

Friendin vb.net is the same asinternalin C#. So the snippet you posted does not match the error message at all. The C# assembly you actually used did not yet havepublicin the class definition. Do make sure that the vb.net and C# projects belong to the same solution and that the vb.net project uses a project reference instead of a file reference to avoid such mishaps.dllfile of C# project it work without any problems!