using interface in c#
<p>I created a class that's called UserSessionModel; in it I'm storing some data about the user and in particular I'm storing several json strings that are the results of queries and serializations.</p>

<p>I have several methods and properties in UserSessionModel that overall look like this:</p>

<pre><code>public string SomeUserDataInJson1 { get; set; }
public string SomeUserDataInJson2 { get; set; }
.... 3 more properties like this
public int UserID { get; set; }

private void GetSomeUserDataInJson1
{
   ObjectData1 TheObjectData1 = new ObjectData1();
   UserQueries TheUserQueries = new UserQueries();
   JavascriptSerializer TheSerializer = new JavascriptSerializer();

   TheObjectData1 = TheUserQueries.GetData1(TheUserID);

   this.SomeUserData1InJson = TheSerializer.Serialize(TheObjectData1);
}
</code></pre>

<p>This code is repeated 5 times, with the only change being the ObjectData, the name of the query and the property SomeUserData that's getting set.</p>

<p>Is there a way to make this "better" with an interface or some other c# tools?</p>

<p>Thanks.</p>
