本文整理汇总了C#中DEBUG_PROPERTY_INFO.OrderBy方法的典型用法代码示例。如果您正苦于以下问题:C# DEBUG_PROPERTY_INFO.OrderBy方法的具体用法?C# DEBUG_PROPERTY_INFO.OrderBy怎么用?C# DEBUG_PROPERTY_INFO.OrderBy使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类DEBUG_PROPERTY_INFO
的用法示例。
在下文中一共展示了DEBUG_PROPERTY_INFO.OrderBy方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: CreateParameterProperties
// Construct an instance of IEnumDebugPropertyInfo2 for the parameters collection only.
private void CreateParameterProperties(out uint elementsReturned, out IEnumDebugPropertyInfo2 enumObject) {
elementsReturned = (uint)mParams.Length;
var propInfo = new DEBUG_PROPERTY_INFO[mParams.Length];
for (int i = 0; i < propInfo.Length; i++) {
AD7Property property = new AD7Property(mParams[i], mProcess, this);
propInfo[i] = property.ConstructDebugPropertyInfo(enum_DEBUGPROP_INFO_FLAGS.DEBUGPROP_INFO_STANDARD);
}
propInfo = propInfo.OrderBy(i => i.bstrName).ToArray();
enumObject = new AD7PropertyInfoEnum(propInfo);
}
示例2: CreateLocalsPlusArgsProperties
// Construct an instance of IEnumDebugPropertyInfo2 for the combined locals and parameters.
private void CreateLocalsPlusArgsProperties(out uint elementsReturned, out IEnumDebugPropertyInfo2 enumObject) {
elementsReturned = 0;
int localsLength = 0;
if (mLocals != null) {
localsLength = mLocals.Length;
elementsReturned += (uint)localsLength;
}
if (mParams != null) {
elementsReturned += (uint)mParams.Length;
}
var propInfo = new DEBUG_PROPERTY_INFO[elementsReturned];
if (mLocals != null) {
for (int i = 0; i < mLocals.Length; i++) {
AD7Property property = new AD7Property(mLocals[i], this.mProcess, this);
propInfo[i] = property.ConstructDebugPropertyInfo(enum_DEBUGPROP_INFO_FLAGS.DEBUGPROP_INFO_STANDARD);
}
}
if (mParams != null) {
for (int i = 0; i < mParams.Length; i++) {
AD7Property property = new AD7Property(mParams[i], this.mProcess, this);
propInfo[localsLength + i] = property.ConstructDebugPropertyInfo(enum_DEBUGPROP_INFO_FLAGS.DEBUGPROP_INFO_STANDARD);
}
}
propInfo = propInfo.OrderBy(i => i.bstrName).ToArray();
enumObject = new AD7PropertyInfoEnum(propInfo);
}