本文整理汇总了C#中RoomData.method_1方法的典型用法代码示例。如果您正苦于以下问题:C# RoomData.method_1方法的具体用法?C# RoomData.method_1怎么用?C# RoomData.method_1使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类RoomData
的用法示例。
在下文中一共展示了RoomData.method_1方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: method_17
public RoomData method_17(uint uint_0, DataRow dataRow_0)
{
RoomData result;
if (this.hashtable_0.ContainsKey(uint_0))
{
result = (this.hashtable_0[uint_0] as RoomData);
}
else
{
RoomData @class = new RoomData();
if (this.method_13(uint_0))
{
@class = this.GetRoom(uint_0).Class27_0;
}
else
{
@class.method_1(dataRow_0);
}
if (!this.hashtable_0.ContainsKey(uint_0))
{
this.hashtable_0.Add(uint_0, @class);
}
result = @class;
}
return result;
}
示例2: method_12
public RoomData method_12(uint uint_0)
{
RoomData @class = new RoomData();
RoomData result;
lock (this.hashtable_0)
{
if (this.hashtable_0.ContainsKey(uint_0))
{
result = (this.hashtable_0[uint_0] as RoomData);
return result;
}
if (this.method_13(uint_0))
{
result = this.GetRoom(uint_0).Class27_0;
return result;
}
DataRow dataRow = null;
using (DatabaseClient class2 = GoldTree.GetDatabase().GetClient())
{
dataRow = class2.ReadDataRow("SELECT * FROM rooms WHERE Id = '" + uint_0 + "' LIMIT 1");
}
if (dataRow == null)
{
result = null;
return result;
}
@class.method_1(dataRow);
}
if (!this.hashtable_0.ContainsKey(uint_0))
{
this.hashtable_0.Add(uint_0, @class);
}
result = @class;
return result;
}