There are a couple of opportunities, all having their own advantages and disadvantages.
a delegate
byte[] V;
V= new Func<byte[]>(() => ()
{
//Some code here
return new byte[]{0,1,2,3};
}();
a local function
void DoSomething()
{
byte[] V;
byte[]MyLocalFunction()
{
//Some code here
return new byte[]{0,1,2,3};
}
V = MyLocalFunction();
}
a normal private method with a name
Personally I prefer 3 the most, as you have a name that clearly describes what the method should do. 2 also has a name and in fact compiles to a private static method within your class, so it may seem appropriate as well. 1 just makes your code har to understand and read. There are use-caes for that, but in most cases I won´t suggest to use it.
So if you think there is some logic within a member that should be extracted in some way, you give it a name. This way you can easily extract that to another class later on, if you need to.