Imported Upstream version 6.12.0.86

Former-commit-id: 7a84ce7d08c42c458ac8e74b27186ca863315d79
This commit is contained in:
Xamarin Public Jenkins (auto-signing)
2020-07-10 08:44:59 +00:00
parent 92747312ea
commit 0b380204a4
812 changed files with 26901 additions and 9053 deletions

View File

@@ -379,7 +379,7 @@ namespace System.Data.Mapping.ViewGeneration.Validation
//We need to check to see if the dependent properties that were mapped from S side are present as
//dependant properties of this ref constraint on the Edm side. We need to do the same for principal side but
//we can not enforce equality since the order of the properties participating in the constraint on the S side and
//C side could be different. This is OK as long as they are mapped appropriately. We also can not use Existance as a sufficient
//C side could be different. This is OK as long as they are mapped appropriately. We also can not use Existence as a sufficient
//condition since it will allow invalid mapping where FK columns could have been flipped when mapping to the Edm side. So
//we make sure that the index of the properties in the principal and dependant are same on the Edm side even if they are in
//different order for ref constraints for Edm and store side.

View File

@@ -1 +1 @@
947bb1ef39714c18d3e8732a0705d7a11ce48ae2
ed3e6adb3351722525d173c64203a5bb2675e9a0

View File

@@ -42,7 +42,7 @@ namespace System.Data.Common {
// a linked list of key/value and their length in _encryptedUsersConnectionString
readonly private NameValuePair _keychain;
// track the existance of "password" or "pwd" in the connection string
// track the existence of "password" or "pwd" in the connection string
// not used for anything anymore but must keep it set correct for V1.1 serialization
readonly private bool _hasPassword;

View File

@@ -60,7 +60,7 @@ namespace System.Data.Odbc{
new SchemaFunctionName(OdbcMetaDataCollectionNames.Tables,ODBC32.SQL_API.SQLTABLES),
new SchemaFunctionName(OdbcMetaDataCollectionNames.Views,ODBC32.SQL_API.SQLTABLES)};
// verify the existance of the table in the data set
// verify the existence of the table in the data set
DataTable metaDataCollectionsTable = CollectionDataSet.Tables[DbMetaDataCollectionNames.MetaDataCollections];
if (metaDataCollectionsTable == null){
throw ADP.UnableToBuildCollection(DbMetaDataCollectionNames.MetaDataCollections);
@@ -69,7 +69,7 @@ namespace System.Data.Odbc{
// copy the table filtering out any rows that don't apply to the current version of the provider
metaDataCollectionsTable = CloneAndFilterCollection(DbMetaDataCollectionNames.MetaDataCollections, null);
// verify the existance of the table in the data set
// verify the existence of the table in the data set
DataTable restrictionsTable = CollectionDataSet.Tables[DbMetaDataCollectionNames.Restrictions];
if (restrictionsTable != null){
// copy the table filtering out any rows that don't apply to the current version of the provider
@@ -747,7 +747,7 @@ namespace System.Data.Odbc{
// verify the existance of the table in the data set
// verify the existence of the table in the data set
DataTable dataTypesTable = CollectionDataSet.Tables[DbMetaDataCollectionNames.DataTypes];
if (dataTypesTable == null){
throw ADP.UnableToBuildCollection(DbMetaDataCollectionNames.DataTypes);
@@ -927,13 +927,13 @@ namespace System.Data.Odbc{
throw ADP.TooManyRestrictions(DbMetaDataCollectionNames.ReservedWords);
}
// verify the existance of the table in the data set
// verify the existence of the table in the data set
DataTable reservedWordsTable = CollectionDataSet.Tables[DbMetaDataCollectionNames.ReservedWords];
if (reservedWordsTable == null){
throw ADP.UnableToBuildCollection(DbMetaDataCollectionNames.ReservedWords);
}
// copy the table filtering out any rows that don't apply to tho current version of the prrovider
// copy the table filtering out any rows that don't apply to tho current version of the provider
reservedWordsTable = CloneAndFilterCollection(DbMetaDataCollectionNames.ReservedWords, null);
DataColumn reservedWordColumn = reservedWordsTable.Columns[DbMetaDataColumnNames.ReservedWord];

View File

@@ -61,7 +61,7 @@ namespace System.Data.OleDb{
new SchemaRowsetName(OleDbMetaDataCollectionNames.Tables,OleDbSchemaGuid.Tables),
new SchemaRowsetName(OleDbMetaDataCollectionNames.Views,OleDbSchemaGuid.Views)};
// verify the existance of the table in the data set
// verify the existence of the table in the data set
DataTable metaDataCollectionsTable = CollectionDataSet.Tables[DbMetaDataCollectionNames.MetaDataCollections];
if (metaDataCollectionsTable == null){
throw ADP.UnableToBuildCollection(DbMetaDataCollectionNames.MetaDataCollections);
@@ -70,7 +70,7 @@ namespace System.Data.OleDb{
// copy the table filtering out any rows that don't apply to the current version of the provider
metaDataCollectionsTable = CloneAndFilterCollection(DbMetaDataCollectionNames.MetaDataCollections, null);
// verify the existance of the table in the data set
// verify the existence of the table in the data set
DataTable restrictionsTable = CollectionDataSet.Tables[DbMetaDataCollectionNames.Restrictions];
if (restrictionsTable != null){
// copy the table filtering out any rows that don't apply to the current version of the provider
@@ -333,7 +333,7 @@ namespace System.Data.OleDb{
private DataTable GetDataTypesTable(OleDbConnection connection){
// verify the existance of the table in the data set
// verify the existence of the table in the data set
DataTable dataTypesTable = CollectionDataSet.Tables[DbMetaDataCollectionNames.DataTypes];
if (dataTypesTable == null){
throw ADP.UnableToBuildCollection(DbMetaDataCollectionNames.DataTypes);
@@ -453,7 +453,7 @@ namespace System.Data.OleDb{
private DataTable GetReservedWordsTable(OleDbConnectionInternal internalConnection){
// verify the existance of the table in the data set
// verify the existence of the table in the data set
DataTable reservedWordsTable = CollectionDataSet.Tables[DbMetaDataCollectionNames.ReservedWords];
if (null == reservedWordsTable){
throw ADP.UnableToBuildCollection(DbMetaDataCollectionNames.ReservedWords);

View File

@@ -194,7 +194,7 @@ namespace System.Data.OleDb {
if (!_hasSupportIRow) {
object value = command.GetPropertyValue(OleDbPropertySetGuid.Rowset, ODB.DBPROP_IRow);
// SQLOLEDB always returns VARIANT_FALSE for DBPROP_IROW, so base the answer on existance
// SQLOLEDB always returns VARIANT_FALSE for DBPROP_IROW, so base the answer on existence
supportIRow = !(value is OleDbPropertyStatus);
_supportIRow = supportIRow;
_hasSupportIRow = true;

View File

@@ -242,7 +242,7 @@ namespace System.Data.SqlClient{
private DataTable GetDataTypesTable(SqlConnection connection){
// verify the existance of the table in the data set
// verify the existence of the table in the data set
DataTable dataTypesTable = CollectionDataSet.Tables[DbMetaDataCollectionNames.DataTypes];
if (dataTypesTable == null){
throw ADP.UnableToBuildCollection(DbMetaDataCollectionNames.DataTypes);

View File

@@ -1,6 +1,6 @@
//-------------------------------------------------------------
// <copyright company=<EFBFBD>Microsoft Corporation<EFBFBD>>
// Copyright <EFBFBD> Microsoft Corporation. All Rights Reserved.
// <copyright company=Microsoft Corporation>
// Copyright © Microsoft Corporation. All Rights Reserved.
// </copyright>
//-------------------------------------------------------------
// @owner=alexgor, deliant
@@ -161,7 +161,7 @@ namespace System.Web.UI.DataVisualization.Charting.ChartTypes
virtual public bool ZeroCrossing { get{ return false;} }
/// <summary>
/// True if palette colors should be applied for each data paoint.
/// True if palette colors should be applied for each data point.
/// Otherwise the color is applied to the series.
/// </summary>
virtual public bool ApplyPaletteColorsToPoints { get { return false; } }
@@ -351,7 +351,7 @@ namespace System.Web.UI.DataVisualization.Charting.ChartTypes
double yValue1 = vAxis.GetLogValue( point.YValues[1] );
xValue = hAxis.GetLogValue(xValue);
// Check if chart is completly out of the data scaleView
// Check if chart is completely out of the data scaleView
if(xValue < hAxis.ViewMinimum ||
xValue > hAxis.ViewMaximum ||
(yValue0 < vAxis.ViewMinimum && yValue1 < vAxis.ViewMinimum) ||
@@ -386,13 +386,13 @@ namespace System.Web.UI.DataVisualization.Charting.ChartTypes
}
low = vAxis.GetLinearPosition(low);
// Remeber pre-calculated point position
// Remember pre-calculated point position
point.positionRel = new PointF((float)xPosition, (float)Math.Min(high, low));
if( common.ProcessModePaint )
{
// Check if chart is partialy in the data scaleView
// Check if chart is partially in the data scaleView
bool clipRegionSet = false;
if(xValue == hAxis.ViewMinimum || xValue == hAxis.ViewMaximum )
{
@@ -613,7 +613,7 @@ namespace System.Web.UI.DataVisualization.Charting.ChartTypes
double yValue1 = vAxis.GetLogValue( point.YValues[1] );
xValue = hAxis.GetLogValue(xValue);
// Check if chart is completly out of the data scaleView
// Check if chart is completely out of the data scaleView
if(xValue < hAxis.ViewMinimum ||
xValue > hAxis.ViewMaximum ||
(yValue0 < vAxis.ViewMinimum && yValue1 < vAxis.ViewMinimum) ||
@@ -908,7 +908,7 @@ namespace System.Web.UI.DataVisualization.Charting.ChartTypes
text = point.ReplaceKeywords(point.Label);
}
// Adjust label positio to the marker size
// Adjust label position to the marker size
SizeF markerSizes = new SizeF(0f, 0f);
if (point.MarkerStyle != MarkerStyle.None)
{
@@ -1131,7 +1131,7 @@ namespace System.Web.UI.DataVisualization.Charting.ChartTypes
double yValue1 = vAxis.GetLogValue( point.YValues[1] );
xValue = hAxis.GetLogValue(xValue);
// Check if chart is completly out of the data scaleView
// Check if chart is completely out of the data scaleView
if(xValue < hAxis.ViewMinimum ||
xValue > hAxis.ViewMaximum ||
(yValue0 < vAxis.ViewMinimum && yValue1 < vAxis.ViewMinimum) ||
@@ -1165,7 +1165,7 @@ namespace System.Web.UI.DataVisualization.Charting.ChartTypes
}
low = vAxis.GetLinearPosition(low);
// Remeber pre-calculated point position
// Remember pre-calculated point position
point.positionRel = new PointF((float)xPosition, (float)Math.Min(high, low));
// 3D Transform coordinates
@@ -1180,7 +1180,7 @@ namespace System.Web.UI.DataVisualization.Charting.ChartTypes
if( common.ProcessModePaint )
{
// Check if chart is partialy in the data scaleView
// Check if chart is partially in the data scaleView
bool clipRegionSet = false;
if(xValue == hAxis.ViewMinimum || xValue == hAxis.ViewMaximum )
{
@@ -1402,7 +1402,7 @@ namespace System.Web.UI.DataVisualization.Charting.ChartTypes
double yValue1 = vAxis.GetLogValue( point.YValues[1] );
xValue = hAxis.GetLogValue(xValue);
// Check if chart is completly out of the data scaleView
// Check if chart is completely out of the data scaleView
if(xValue < hAxis.ViewMinimum ||
xValue > hAxis.ViewMaximum ||
(yValue0 < vAxis.ViewMinimum && yValue1 < vAxis.ViewMinimum) ||
@@ -1521,7 +1521,7 @@ namespace System.Web.UI.DataVisualization.Charting.ChartTypes
/// </summary>
/// <param name="common">Chart common elements.</param>
/// <param name="area">Chart area the series belongs to.</param>
/// <param name="series">Sereis of the point.</param>
/// <param name="series">Series of the point.</param>
/// <param name="point">Point object.</param>
/// <param name="pointIndex">Index of the point.</param>
/// <param name="yValueIndex">Index of the Y value to get.</param>
@@ -1589,7 +1589,7 @@ namespace System.Web.UI.DataVisualization.Charting.ChartTypes
Chart control = boxPlotSeries.Chart;
if(control != null)
{
// Get linked series and check existance
// Get linked series and check existence
if(control.Series.IndexOf(linkedSeriesName) == -1)
{
throw(new InvalidOperationException(SR.ExceptionCustomAttributeSeriesNameNotFound("BoxPlotSeries", linkedSeriesName) ));
@@ -1692,7 +1692,7 @@ namespace System.Web.UI.DataVisualization.Charting.ChartTypes
requiredPercentile[1] = 100.0 - requiredPercentile[0];
}
// Calculate 5 recured percentile values
// Calculate 5 recurred percentile values
double[] percentileValues = CalculatePercentileValues(yValues, requiredPercentile);
// Set data points values
@@ -1753,7 +1753,7 @@ namespace System.Web.UI.DataVisualization.Charting.ChartTypes
// Update point's values
if(unusualValuesList.Count > 0)
{
// Create new arry of values for the data pont
// Create new array of values for the data pont
double[] newYValues = new double[6 + unusualValuesList.Count];
// Copy original data

View File

@@ -1,6 +1,6 @@
//-------------------------------------------------------------
// <copyright company=<EFBFBD>Microsoft Corporation<EFBFBD>>
// Copyright <EFBFBD> Microsoft Corporation. All Rights Reserved.
// <copyright company=Microsoft Corporation>
// Copyright © Microsoft Corporation. All Rights Reserved.
// </copyright>
//-------------------------------------------------------------
// @owner=alexgor, deliant
@@ -209,7 +209,7 @@ using System.Collections.Generic;
virtual public bool ZeroCrossing { get{ return false;} }
/// <summary>
/// True if palette colors should be applied for each data paoint.
/// True if palette colors should be applied for each data point.
/// Otherwise the color is applied to the series.
/// </summary>
virtual public bool ApplyPaletteColorsToPoints { get { return false; } }
@@ -479,7 +479,7 @@ using System.Collections.Generic;
double yValue1 = vAxis.GetLogValue( point.YValues[2] );
xValue = hAxis.GetLogValue(xValue);
// Check if chart is completly out of the data scaleView
// Check if chart is completely out of the data scaleView
if(xValue < hAxis.ViewMinimum ||
xValue > hAxis.ViewMaximum ||
(yValue0 < vAxis.ViewMinimum && yValue1 < vAxis.ViewMinimum) ||
@@ -546,13 +546,13 @@ using System.Collections.Generic;
}
low = vAxis.GetLinearPosition(low);
// Remeber pre-calculated point position
// Remember pre-calculated point position
point.positionRel = new PointF((float)xPosition, (float)Math.Min(high, low));
if( common.ProcessModePaint )
{
// Check if chart is partialy in the data scaleView
// Check if chart is partially in the data scaleView
bool clipRegionSet = false;
if(xValue == hAxis.ViewMinimum || xValue == hAxis.ViewMaximum )
{
@@ -631,7 +631,7 @@ using System.Collections.Generic;
double yValue1 = vAxis.GetLogValue( point.YValues[2] );
xValue = hAxis.GetLogValue(xValue);
// Check if chart is completly out of the data scaleView
// Check if chart is completely out of the data scaleView
if(xValue < hAxis.ViewMinimum ||
xValue > hAxis.ViewMaximum ||
(yValue0 < vAxis.ViewMinimum && yValue1 < vAxis.ViewMinimum) ||
@@ -965,7 +965,7 @@ using System.Collections.Generic;
text = point.ReplaceKeywords(point.Label);
}
// Adjust label positio to the marker size
// Adjust label position to the marker size
SizeF markerSizes = new SizeF(0f, 0f);
if (point.MarkerStyle != MarkerStyle.None)
{
@@ -1232,7 +1232,7 @@ using System.Collections.Generic;
double yValue1 = vAxis.GetLogValue( point.YValues[2] );
xValue = hAxis.GetLogValue(xValue);
// Check if chart is completly out of the data scaleView
// Check if chart is completely out of the data scaleView
if(xValue < hAxis.ViewMinimum ||
xValue > hAxis.ViewMaximum ||
(yValue0 < vAxis.ViewMinimum && yValue1 < vAxis.ViewMinimum) ||
@@ -1297,7 +1297,7 @@ using System.Collections.Generic;
}
low = vAxis.GetLinearPosition(low);
// Remeber pre-calculated point position
// Remember pre-calculated point position
point.positionRel = new PointF((float)xPosition, (float)Math.Min(high, low));
// 3D Transform coordinates
@@ -1309,7 +1309,7 @@ using System.Collections.Generic;
if( common.ProcessModePaint )
{
// Check if chart is partialy in the data scaleView
// Check if chart is partially in the data scaleView
bool clipRegionSet = false;
if(xValue == hAxis.ViewMinimum || xValue == hAxis.ViewMaximum )
{
@@ -1401,7 +1401,7 @@ using System.Collections.Generic;
double yValue1 = vAxis.GetLogValue( point.YValues[2] );
xValue = hAxis.GetLogValue(xValue);
// Check if chart is completly out of the data scaleView
// Check if chart is completely out of the data scaleView
if(xValue < hAxis.ViewMinimum ||
xValue > hAxis.ViewMaximum ||
(yValue0 < vAxis.ViewMinimum && yValue1 < vAxis.ViewMinimum) ||
@@ -1576,7 +1576,7 @@ using System.Collections.Generic;
/// </summary>
/// <param name="common">Chart common elements.</param>
/// <param name="area">Chart area the series belongs to.</param>
/// <param name="series">Sereis of the point.</param>
/// <param name="series">Series of the point.</param>
/// <param name="point">Point object.</param>
/// <param name="pointIndex">Index of the point.</param>
/// <param name="yValueIndex">Index of the Y value to get.</param>
@@ -1615,7 +1615,7 @@ using System.Collections.Generic;
return;
}
// Parase the value of the ErrorBarType attribute.
// Parse the value of the ErrorBarType attribute.
double param = double.NaN;
ErrorBarType errorBarType = ErrorBarType.StandardError;
if(errorBarSeries.IsCustomPropertySet(CustomPropertyName.ErrorBarType))
@@ -1681,7 +1681,7 @@ using System.Collections.Generic;
}
}
// Number of poist without empty points
// Number of point without empty points
pointNumber -= numberOfEmptyPoints;
if (double.IsNaN(param))
@@ -1823,7 +1823,7 @@ using System.Collections.Generic;
Chart control = errorBarSeries.Chart;
if(control != null)
{
// Get linked series and check existance
// Get linked series and check existence
if(control.Series.IndexOf(linkedSeriesName) == -1)
{
throw (new InvalidOperationException(SR.ExceptionDataSeriesNameNotFound(linkedSeriesName)));
@@ -1834,7 +1834,7 @@ using System.Collections.Generic;
errorBarSeries.XAxisType = linkedSeries.XAxisType;
errorBarSeries.YAxisType = linkedSeries.YAxisType;
// Get cennter values from the linked series
// Get center values from the linked series
errorBarSeries.Points.Clear();
foreach(DataPoint point in linkedSeries.Points)
{

View File

@@ -8,19 +8,31 @@ namespace System.Net.NetworkInformation
{
/// Returns objects that describe the network interfaces on the local computer.
public static NetworkInterface[] GetAllNetworkInterfaces(){
#if WASM
throw new PlatformNotSupportedException ();
#else
#if MONO_FEATURE_CAS
(new NetworkInformationPermission(NetworkInformationAccess.Read)).Demand();
#endif
return SystemNetworkInterface.GetNetworkInterfaces();
#endif
}
public static bool GetIsNetworkAvailable(){
#if WASM
throw new PlatformNotSupportedException ();
#else
return SystemNetworkInterface.InternalGetIsNetworkAvailable();
#endif
}
public static int LoopbackInterfaceIndex{
get{
#if WASM
throw new PlatformNotSupportedException ();
#else
return SystemNetworkInterface.InternalLoopbackInterfaceIndex;
#endif
}
}

View File

@@ -23,9 +23,9 @@ namespace System.Net.Sockets {
#if MONO
[System.Runtime.CompilerServices.MethodImplAttribute (System.Runtime.CompilerServices.MethodImplOptions.InternalCall)]
static extern int WSAGetLastError_internal ();
static extern int WSAGetLastError_icall ();
public SocketException () : base (WSAGetLastError_internal ())
public SocketException () : base (WSAGetLastError_icall ())
{
}

View File

@@ -1 +1 @@
be9e666ae292ad56ce00e255ef9b47967f79d9f1
e7e7b13def5ec90335235c5a8676767c5f744e0b

View File

@@ -7,7 +7,7 @@ namespace System.Net {
public const string UploadFile = "STOR"; // uploads a file
public const string DeleteFile = "DELE"; // deletes a file
public const string AppendFile = "APPE"; // append a file
public const string GetFileSize = "SIZE"; // determines if a file is in existance
public const string GetFileSize = "SIZE"; // determines if a file is in existence
public const string UploadFileWithUniqueName = "STOU";
public const string MakeDirectory = "MKD";
public const string RemoveDirectory = "RMD";

View File

@@ -1,3 +1,4 @@
#if __MonoCS__
// ==++==
//
// Copyright (c) Microsoft Corporation. All rights reserved.
@@ -596,3 +597,4 @@ namespace System.Globalization {
}
}
}
#endif

View File

@@ -241,6 +241,13 @@ namespace System.Globalization {
[System.Security.SecuritySafeCritical] // auto-generated
internal NumberFormatInfo(CultureData cultureData)
{
#if MONO
if (GlobalizationMode.Invariant) {
this.m_isInvariant = true;
return;
}
#endif
if (cultureData != null)
{
// We directly use fields here since these data is coming from data table or Win32, so we