title: how to create Nullable<T> within function?
body: <p>I have a generic class for an array operation.</p>
  <p>I have a function which should return <code>T</code> if a condition is met but return null if the condition is not met.</p>
  <p>Minnimal reproducible example:</p>
  <pre><code>internal Nullable&lt;T&gt; AppendPoint(T input)
  {
      Nullable&lt;T&gt; result = null; // Type T must be a non nullable value type...
      if (Length == Array.Length)
      {
          // result = Array[TailIndex];
      }
      //
      // add new element to array logic here
      //
      return result; //no compiler error
      return null; // works
  }
  </code></pre>
  <p>Specifically, this function should insert a value into a circular array.
  This may Overwrite a previous value which should be returned, if it is beeing overwritten.</p>
  <p>Apparently, I can return null, I can create the function with Nullable but I cant create a Nullable within the function.</p>