Is it necessary to avoid coping from heap to stack when dealing with an array of struct instances?

后端 未结 0 1020
忘了有多久
忘了有多久 2021-02-03 11:23

Let\'s say we have a struct as:

public struct Rectangle {
   public Rectangle (int l, int w) {
       this.Length = l;
       this.Width = w;
   }
   public int L         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题