本文整理汇总了C#中DomReturnType.SetDimensions方法的典型用法代码示例。如果您正苦于以下问题:C# DomReturnType.SetDimensions方法的具体用法?C# DomReturnType.SetDimensions怎么用?C# DomReturnType.SetDimensions使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类DomReturnType
的用法示例。
在下文中一共展示了DomReturnType.SetDimensions方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: ReadReturnType
public static IReturnType ReadReturnType (BinaryReader reader, INameDecoder nameTable, IDomObjectTable objectTable)
{
if (ReadNull (reader))
return null;
byte index = reader.ReadByte ();
if (index < 0xFF)
return DomReturnType.GetSharedReturnType (index);
string ns = ReadString (reader, nameTable);
List<ReturnTypePart> parts = new List<ReturnTypePart> ();
uint partCount = ReadUInt (reader, 500);
while (partCount-- > 0) {
ReturnTypePart part = new ReturnTypePart ();
parts.Add (part);
part.Name = ReadString (reader, nameTable);
part.IsGenerated = reader.ReadBoolean ();
uint arguments = ReadUInt (reader, 1000);
while (arguments-- > 0)
part.AddTypeParameter (ReadReturnType (reader, nameTable, objectTable));
}
DomReturnType result = new DomReturnType (ns, parts);
result.PointerNestingLevel = reader.ReadInt32 ();
result.IsNullable = reader.ReadBoolean ();
result.IsByRef = reader.ReadBoolean ();
int arrayDimensions = reader.ReadInt32 ();
int[] dims = new int [arrayDimensions];
for (int n=0; n<arrayDimensions; n++)
dims [n] = reader.ReadInt32 ();
result.SetDimensions (dims);
return objectTable != null ? (IReturnType) objectTable.GetSharedObject (result) : result;
}