Skip to content
This repository was archived by the owner on Jan 23, 2023. It is now read-only.
/ corefx Public archive

Fix VB Conversions #31486

Merged
merged 3 commits into from
Oct 2, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
88 changes: 62 additions & 26 deletions src/Microsoft.VisualBasic/ref/Microsoft.VisualBasic.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,6 @@
// Changes to this file must follow the http://aka.ms/api-review process.
// ------------------------------------------------------------------------------

using System;

namespace Microsoft.VisualBasic
{
public enum CallType
Expand Down Expand Up @@ -46,11 +44,6 @@ void System.Collections.IList.RemoveAt(int index) { }
public void Remove(int Index) { }
public void Remove(string Key) { }
}
public enum CompareMethod
{
Binary = 0,
Text = 1,
}
[System.AttributeUsageAttribute((System.AttributeTargets)(4), Inherited=false, AllowMultiple=false)]
public sealed partial class ComClassAttribute : System.Attribute
{
Expand All @@ -63,11 +56,17 @@ public ComClassAttribute(string _ClassID, string _InterfaceID, string _EventId)
public string InterfaceID { get { throw null; } }
public bool InterfaceShadows { get { throw null; } set { } }
}
public enum CompareMethod
{
Binary = 0,
Text = 1,
}
[Microsoft.VisualBasic.CompilerServices.StandardModuleAttribute]
public sealed partial class Constants
{
internal Constants() { }
public const string vbBack = "\b";
public const Microsoft.VisualBasic.CompareMethod vbBinaryCompare = Microsoft.VisualBasic.CompareMethod.Binary;
public const string vbCr = "\r";
public const string vbCrLf = "\r\n";
public const string vbFormFeed = "\f";
Expand All @@ -77,9 +76,8 @@ internal Constants() { }
public const string vbNullChar = "\0";
public const string vbNullString = null;
public const string vbTab = "\t";
public const Microsoft.VisualBasic.CompareMethod vbTextCompare = Microsoft.VisualBasic.CompareMethod.Text;
public const string vbVerticalTab = "\v";
public const CompareMethod vbBinaryCompare = CompareMethod.Binary;
public const CompareMethod vbTextCompare = CompareMethod.Text;
}
public sealed partial class ControlChars
{
Expand All @@ -99,25 +97,15 @@ public ControlChars() { }
public sealed partial class DateAndTime
{
internal DateAndTime() { }
public static DateTime Now { get; }
public static DateTime Today { get; }
public static System.DateTime Now { get { throw null; } }
public static System.DateTime Today { get { throw null; } }
}
[System.AttributeUsageAttribute((System.AttributeTargets)(4), AllowMultiple=false, Inherited=false)]
[System.ComponentModel.EditorBrowsableAttribute((System.ComponentModel.EditorBrowsableState)(1))]
public sealed partial class HideModuleNameAttribute : System.Attribute
{
public HideModuleNameAttribute() { }
}
[System.AttributeUsageAttribute((System.AttributeTargets)(4), AllowMultiple=false, Inherited=false)]
[System.ComponentModel.EditorBrowsableAttribute((System.ComponentModel.EditorBrowsableState)(2))]
public sealed partial class MyGroupCollectionAttribute : System.Attribute
{
public MyGroupCollectionAttribute(string typeToCollect, string createInstanceMethodName, string disposeInstanceMethodName, string defaultInstanceAlias) { }
public string CreateMethod { get { throw null; } }
public string DefaultInstanceAlias { get { throw null; } }
public string DisposeMethod { get { throw null; } }
public string MyGroupName { get { throw null; } }
}
[Microsoft.VisualBasic.CompilerServices.StandardModuleAttribute]
public sealed partial class Information
{
Expand All @@ -134,9 +122,19 @@ internal Information() { }
public static int RGB(int Red, int Green, int Blue) { throw null; }
public static string SystemTypeName(string VbName) { throw null; }
public static int UBound(System.Array Array, int Rank = 1) { throw null; }
public static VariantType VarType(object VarName) { throw null; }
public static Microsoft.VisualBasic.VariantType VarType(object VarName) { throw null; }
public static string VbTypeName(string UrtName) { throw null; }
}
[System.AttributeUsageAttribute((System.AttributeTargets)(4), AllowMultiple=false, Inherited=false)]
[System.ComponentModel.EditorBrowsableAttribute((System.ComponentModel.EditorBrowsableState)(2))]
public sealed partial class MyGroupCollectionAttribute : System.Attribute
{
public MyGroupCollectionAttribute(string typeToCollect, string createInstanceMethodName, string disposeInstanceMethodName, string defaultInstanceAlias) { }
public string CreateMethod { get { throw null; } }
public string DefaultInstanceAlias { get { throw null; } }
public string DisposeMethod { get { throw null; } }
public string MyGroupName { get { throw null; } }
}
[Microsoft.VisualBasic.CompilerServices.StandardModuleAttribute]
public sealed partial class Strings
{
Expand All @@ -147,8 +145,8 @@ internal Strings() { }
public static int AscW(string String) { throw null; }
public static char Chr(int CharCode) { throw null; }
public static char ChrW(int CharCode) { throw null; }
public static string[] Filter(object[] Source, string Match, bool Include = true, [Microsoft.VisualBasic.CompilerServices.OptionCompareAttribute] CompareMethod Compare = CompareMethod.Binary) { throw null; }
public static string[] Filter(string[] Source, string Match, bool Include = true, [Microsoft.VisualBasic.CompilerServices.OptionCompareAttribute] CompareMethod Compare = CompareMethod.Binary) { throw null; }
public static string[] Filter(object[] Source, string Match, bool Include = true, [Microsoft.VisualBasic.CompilerServices.OptionCompareAttribute]Microsoft.VisualBasic.CompareMethod Compare = (Microsoft.VisualBasic.CompareMethod)(0)) { throw null; }
public static string[] Filter(string[] Source, string Match, bool Include = true, [Microsoft.VisualBasic.CompilerServices.OptionCompareAttribute]Microsoft.VisualBasic.CompareMethod Compare = (Microsoft.VisualBasic.CompareMethod)(0)) { throw null; }
public static string Left(string str, int Length) { throw null; }
public static string LTrim(string str) { throw null; }
public static string Mid(string str, int Start) { throw null; }
Expand Down Expand Up @@ -232,6 +230,11 @@ public sealed partial class Conversions
{
internal Conversions() { }
public static object ChangeType(object Expression, System.Type TargetType) { throw null; }
[System.ObsoleteAttribute("do not use this method", true)]
public static object FallbackUserDefinedConversion(object Expression, System.Type TargetType) { throw null; }
public static string FromCharAndCount(char Value, int Count) { throw null; }
public static string FromCharArray(char[] Value) { throw null; }
public static string FromCharArraySubset(char[] Value, int StartIndex, int Length) { throw null; }
public static bool ToBoolean(object Value) { throw null; }
public static bool ToBoolean(string Value) { throw null; }
public static byte ToByte(object Value) { throw null; }
Expand Down Expand Up @@ -265,12 +268,15 @@ internal Conversions() { }
public static string ToString(char Value) { throw null; }
public static string ToString(System.DateTime Value) { throw null; }
public static string ToString(decimal Value) { throw null; }
public static string ToString(decimal Value, System.Globalization.NumberFormatInfo NumberFormat) { throw null; }
public static string ToString(double Value) { throw null; }
public static string ToString(double Value, System.Globalization.NumberFormatInfo NumberFormat) { throw null; }
public static string ToString(short Value) { throw null; }
public static string ToString(int Value) { throw null; }
public static string ToString(long Value) { throw null; }
public static string ToString(object Value) { throw null; }
public static string ToString(float Value) { throw null; }
public static string ToString(float Value, System.Globalization.NumberFormatInfo NumberFormat) { throw null; }
[System.CLSCompliantAttribute(false)]
public static string ToString(uint Value) { throw null; }
[System.CLSCompliantAttribute(false)]
Expand All @@ -292,8 +298,8 @@ internal Conversions() { }
public sealed partial class BooleanType
{
internal BooleanType() { }
public static Boolean FromObject(object Value) { throw null; }
public static Boolean FromString(string Value) { throw null; }
public static System.Boolean FromObject(object Value) { throw null; }
public static System.Boolean FromString(string Value) { throw null; }
}
[System.ComponentModel.EditorBrowsableAttribute((System.ComponentModel.EditorBrowsableState)(1))]
public sealed partial class DecimalType
Expand Down Expand Up @@ -332,8 +338,36 @@ public IncompleteInitialization() { }
public sealed partial class NewLateBinding
{
internal NewLateBinding() { }
[System.ComponentModel.EditorBrowsableAttribute((System.ComponentModel.EditorBrowsableState)(1))]
[System.ObsoleteAttribute("do not use this method", true)]
public static object FallbackCall(object Instance, string MemberName, object[] Arguments, string[] ArgumentNames, bool IgnoreReturn) { throw null; }
[System.ComponentModel.EditorBrowsableAttribute((System.ComponentModel.EditorBrowsableState)(1))]
[System.ObsoleteAttribute("do not use this method", true)]
public static object FallbackGet(object Instance, string MemberName, object[] Arguments, string[] ArgumentNames) { throw null; }
[System.ComponentModel.EditorBrowsableAttribute((System.ComponentModel.EditorBrowsableState)(1))]
[System.ObsoleteAttribute("do not use this method", true)]
public static void FallbackIndexSet(object Instance, object[] Arguments, string[] ArgumentNames) { }
[System.ComponentModel.EditorBrowsableAttribute((System.ComponentModel.EditorBrowsableState)(1))]
[System.ObsoleteAttribute("do not use this method", true)]
public static void FallbackIndexSetComplex(object Instance, object[] Arguments, string[] ArgumentNames, bool OptimisticSet, bool RValueBase) { }
[System.ComponentModel.EditorBrowsableAttribute((System.ComponentModel.EditorBrowsableState)(1))]
[System.ObsoleteAttribute("do not use this method", true)]
public static object FallbackInvokeDefault1(object Instance, object[] Arguments, string[] ArgumentNames, bool ReportErrors) { throw null; }
[System.ComponentModel.EditorBrowsableAttribute((System.ComponentModel.EditorBrowsableState)(1))]
[System.ObsoleteAttribute("do not use this method", true)]
public static object FallbackInvokeDefault2(object Instance, object[] Arguments, string[] ArgumentNames, bool ReportErrors) { throw null; }
[System.ComponentModel.EditorBrowsableAttribute((System.ComponentModel.EditorBrowsableState)(1))]
[System.ObsoleteAttribute("do not use this method", true)]
public static void FallbackSet(object Instance, string MemberName, object[] Arguments) { }
[System.ComponentModel.EditorBrowsableAttribute((System.ComponentModel.EditorBrowsableState)(1))]
[System.ObsoleteAttribute("do not use this method", true)]
public static void FallbackSetComplex(object Instance, string MemberName, object[] Arguments, bool OptimisticSet, bool RValueBase) { }
public static object LateCall(object Instance, System.Type Type, string MemberName, object[] Arguments, string[] ArgumentNames, System.Type[] TypeArguments, bool[] CopyBack, bool IgnoreReturn) { throw null; }
[System.ComponentModel.EditorBrowsableAttribute((System.ComponentModel.EditorBrowsableState)(1))]
public static object LateCallInvokeDefault(object Instance, object[] Arguments, string[] ArgumentNames, bool ReportErrors) { throw null; }
public static object LateGet(object Instance, System.Type Type, string MemberName, object[] Arguments, string[] ArgumentNames, System.Type[] TypeArguments, bool[] CopyBack) { throw null; }
[System.ComponentModel.EditorBrowsableAttribute((System.ComponentModel.EditorBrowsableState)(1))]
public static object LateGetInvokeDefault(object Instance, object[] Arguments, string[] ArgumentNames, bool ReportErrors) { throw null; }
public static object LateIndexGet(object Instance, object[] Arguments, string[] ArgumentNames) { throw null; }
public static void LateIndexSet(object Instance, object[] Arguments, string[] ArgumentNames) { }
public static void LateIndexSetComplex(object Instance, object[] Arguments, string[] ArgumentNames, bool OptimisticSet, bool RValueBase) { }
Expand Down Expand Up @@ -379,6 +413,8 @@ internal Operators() { }
public static bool ConditionalCompareObjectNotEqual(object Left, object Right, bool TextCompare) { throw null; }
public static object DivideObject(object Left, object Right) { throw null; }
public static object ExponentObject(object Left, object Right) { throw null; }
[System.ObsoleteAttribute("do not use this method", true)]
public static object FallbackInvokeUserDefinedOperator(object vbOp, object[] arguments) { throw null; }
public static object IntDivideObject(object Left, object Right) { throw null; }
public static object LeftShiftObject(object Operand, object Amount) { throw null; }
public static object ModObject(object Left, object Right) { throw null; }
Expand Down
Loading