/// <summary> /// Gets the field given by 'name', case sensitive. Returns null if no such field name exists (or on error). /// </summary> /// <param name="variableName">Name of the variable.</param> public IClrStaticField GetStaticFieldByName(string variableName) { int fieldTypeId = Proxy.GetClrTypeStaticField(Runtime.Process.Id, Id, variableName); VSClrType fieldType = Runtime.GetClrType(fieldTypeId); if (fieldType == null) { return(null); } return(new VSClrStaticField(this, variableName, fieldType)); }
/// <summary> /// Initializes a new instance of the <see cref="VSClrStaticField"/> class. /// </summary> /// <param name="parentType">The owning type.</param> /// <param name="name">The field name.</param> /// <param name="type">The field type.</param> public VSClrStaticField(VSClrType parentType, string name, VSClrType type) { ParentType = parentType; Name = name; Type = type; }