コード例 #1
0
        string GetData(string id)
        {
            if (common == null)
            {
                common = StudentCSV.Initialize();
            }

            return(common.GetStudentData(id));
        }
コード例 #2
0
 /// <summary>
 /// Initialize StudentCSV instance
 /// </summary>
 /// <returns></returns>
 static public StudentCSV Initialize()
 {
     if (instance == null)
     {
         lock (obj)
         {
             instance = new StudentCSV();
         }
     }
     return(instance);
 }