Can I create a C# method inside a class and what type of method should I use?
<p>I have the following class:</p>

<pre><code>public class Content {
      public string PartitionKey { get; set; }
      public string RowKey { get; set; }
}
</code></pre>

<p>The following View Model:</p>

<pre><code>public class ContentViewModel
    {
        public ContentViewModel() { }
        public Content Content { get; set; }
        public bool UseRowKey { 
            get {
                return this.Content.PartitionKey.Substring(2, 2) == "05" ||
                       this.Content.PartitionKey.Substring(2, 2) == "06";
            }
        }
    }
</code></pre>

<p>I created the field "UseRowKey" in the ViewModel. However can I also create this as a method that's part of the class Content?</p>
