InfoAccessType emptyStringLiteral(void** ppValue);
// (static fields only) given that 'field' refers to thread local store,
-// return the ID (TLS index), which is used to find the begining of the
+// return the ID (TLS index), which is used to find the beginning of the
// TLS data area for the particular DLL 'field' is associated with.
DWORD getFieldThreadLocalStoreID(CORINFO_FIELD_HANDLE field, void** ppIndirection = NULL);
}
// (static fields only) given that 'field' refers to thread local store,
-// return the ID (TLS index), which is used to find the begining of the
+// return the ID (TLS index), which is used to find the beginning of the
// TLS data area for the particular DLL 'field' is associated with.
DWORD interceptor_ICJI::getFieldThreadLocalStoreID(CORINFO_FIELD_HANDLE field, void** ppIndirection)
{
}
// (static fields only) given that 'field' refers to thread local store,
-// return the ID (TLS index), which is used to find the begining of the
+// return the ID (TLS index), which is used to find the beginning of the
// TLS data area for the particular DLL 'field' is associated with.
DWORD interceptor_ICJI::getFieldThreadLocalStoreID(CORINFO_FIELD_HANDLE field, void** ppIndirection)
{
}
// (static fields only) given that 'field' refers to thread local store,
-// return the ID (TLS index), which is used to find the begining of the
+// return the ID (TLS index), which is used to find the beginning of the
// TLS data area for the particular DLL 'field' is associated with.
DWORD interceptor_ICJI::getFieldThreadLocalStoreID(CORINFO_FIELD_HANDLE field, void** ppIndirection)
{
}
// (static fields only) given that 'field' refers to thread local store,
-// return the ID (TLS index), which is used to find the begining of the
+// return the ID (TLS index), which is used to find the beginning of the
// TLS data area for the particular DLL 'field' is associated with.
DWORD MyICJI::getFieldThreadLocalStoreID(CORINFO_FIELD_HANDLE field, void** ppIndirection)
{
CordbType ** ppResultType);
// Some derived constructors... Use this one if the type is definitely not
- // a paramterized type, e.g. to implement functions on the API where types cannot
+ // a parameterized type, e.g. to implement functions on the API where types cannot
// be parameterized.
static HRESULT MkUnparameterizedType(CordbAppDomain *appdomain, CorElementType et, CordbClass *cl, CordbType **ppType);
BYTE *pSignature;
HRESULT hr = S_OK;
- // Reset the stream to the begining
+ // Reset the stream to the beginning
LARGE_INTEGER li;
li.u.HighPart = 0;
li.u.LowPart = 0;
*
* Note that ARG_MASK is the mask of pushed args that contain GC pointers
* since the first two arguments are always passed in registers it is
- * a fairly rare occurance to push a GC pointer as an argument, since it
+ * a fairly rare occurrence to push a GC pointer as an argument, since it
* only occurs for nested calls, when the third or later argument for the
* outer call contains a GC ref.
*
//------------------------------------------------------------------------
// Is this at the Sentinal (the ... in a varargs signature) that marks
- // the begining of varguments that are not decared at the target
+ // the beginning of varguments that are not decared at the target
bool AtSentinel() const
{
if (compiler->compJitHaltMethod())
{
/* put a nop first because the debugger and other tools are likely to
- put an int3 at the begining and we don't want to confuse them */
+ put an int3 at the beginning and we don't want to confuse them */
instGen(INS_nop);
instGen(INS_BREAKPOINT);
unsigned csdDefWtCnt; // weighted def count
unsigned csdUseWtCnt; // weighted use count (excluding the implicit uses at defs)
- GenTree* csdTree; // treenode containing the 1st occurance
- Statement* csdStmt; // stmt containing the 1st occurance
- BasicBlock* csdBlock; // block containing the 1st occurance
+ GenTree* csdTree; // treenode containing the 1st occurrence
+ Statement* csdStmt; // stmt containing the 1st occurrence
+ BasicBlock* csdBlock; // block containing the 1st occurrence
treeStmtLst* csdTreeList; // list of matching tree nodes: head
treeStmtLst* csdTreeLast; // list of matching tree nodes: tail
{
if (tiVerificationNeeded)
{
- // Dup could start the begining of delegate creation sequence, remember that
+ // Dup could start the beginning of delegate creation sequence, remember that
delegateCreateStart = codeAddr - 1;
impStackTop(0);
}
if (tiVerificationNeeded)
{
- // LDFTN could start the begining of delegate creation sequence, remember that
+ // LDFTN could start the beginning of delegate creation sequence, remember that
delegateCreateStart = codeAddr - 2;
// check any constraints on the callee's class and type parameters
{
// We are casting away GC information. we would like to just
// change the type to int, however this gives the emitter fits because
- // it believes the variable is a GC variable at the begining of the
+ // it believes the variable is a GC variable at the beginning of the
// instruction group, but is not turned non-gc by the code generator
// we fix this by copying the GC pointer to a non-gc pointer temp.
noway_assert(!varTypeIsGC(dstType) && "How can we have a cast to a GCRef here?");
// The ValueNum returned must represent the full-sized IL-Stack value
// If we need to widen this value then we need to introduce a VNF_Cast here to represent
- // the widened value. This is necessary since the CSE package can replace all occurances
+ // the widened value. This is necessary since the CSE package can replace all occurrences
// of a given ValueNum with a LclVar that is a full-sized IL-Stack value
//
if (varTypeIsSmall(tree->TypeGet()))
**
** Purpose:
** Search a string for characters in a given character set and ensure the
-** pointer returned points to the first occurance. Check to see that the
+** pointer returned points to the first occurrence. Check to see that the
** function returns NULL if the character is not found.
**
**
EXE1 = test1
Description
= Search a string for characters in a given character set and ensure the
-= pointer returned points to the first occurance. Check to see that the
+= pointer returned points to the first occurrence. Check to see that the
= function returns NULL if the character is not found.
** Purpose: InterlockedIncrement64() function
**
** The test case spawns MAX_THREADS Threads, and each thread call InterlockedDecrement Function to decrement a
-** global counter REPEAT_COUNT Times. The Test case sets the global counter to Zero at the begining of the test.
+** global counter REPEAT_COUNT Times. The Test case sets the global counter to Zero at the beginning of the test.
** The test cases passes if at the end the test the value of the global counter is MAX_THREADS * REPEAT_COUNT.
**
**
**
** The test case spawns MAX_THREADS Threads, and each thread call InterlockedDecrement Function to decrement a
** global counter REPEAT_COUNT Times. The Test case sets the global counter to MAX_THREADS * REPEAT_COUNT
-** at the begining of the test. The test cases passes if at the end the test the value of the global counter is Zero.
+** at the beginning of the test. The test cases passes if at the end the test the value of the global counter is Zero.
**
**
**=========================================================*/
**
** The test case spawns MAX_THREADS Threads, and each thread call InterlockedDecrement Function to decrement a
** global counter REPEAT_COUNT Times. The Test case sets the global counter to MAX_THREADS * REPEAT_COUNT
-** at the begining of the test. The test cases passes if at the end the test the value of the global counter is Zero.
+** at the beginning of the test. The test cases passes if at the end the test the value of the global counter is Zero.
**
**
**=========================================================*/
** Purpose: InterlockedIncrement() function
**
** The test case spawns MAX_THREADS Threads, and each thread call InterlockedDecrement Function to decrement a
-** global counter REPEAT_COUNT Times. The Test case sets the global counter to Zero at the begining of the test.
+** global counter REPEAT_COUNT Times. The Test case sets the global counter to Zero at the beginning of the test.
** The test cases passes if at the end the test the value of the global counter is MAX_THREADS * REPEAT_COUNT.
**
**
** Purpose: InterlockedIncrement64() function
**
** The test case spawns MAX_THREADS Threads, and each thread call InterlockedDecrement Function to decrement a
-** global counter REPEAT_COUNT Times. The Test case sets the global counter to Zero at the begining of the test.
+** global counter REPEAT_COUNT Times. The Test case sets the global counter to Zero at the beginning of the test.
** The test cases passes if at the end the test the value of the global counter is MAX_THREADS * REPEAT_COUNT.
**
**
//
// Given a pointer to the end of a path component, return a pointer to
-// its begining.
+// its beginning.
// ie return a pointer to the previous backslash (or start of the string).
//
LPCWSTR PCStart(LPCWSTR lpszStart, LPCWSTR lpszEnd)
public enum BlobType : int
{
// IMPORTANT: Keep the first four enums together in the same order and at the
- // very begining of this enum. See MetaModelPub.h for the order
+ // very beginning of this enum. See MetaModelPub.h for the order
MetadataStringPool = 0,
MetadataGuidPool = 1,
public const uint READYTORUN_SIGNATURE = 0x00525452; // 'RTR'
/// <summary>
- /// RVA to the begining of the ReadyToRun header
+ /// RVA to the beginning of the ReadyToRun header
/// </summary>
public int RelativeVirtualAddress { get; set; }
CONTRACTL_END;
// CPUGroupInfo needs to be initialized only once. This could happen in three cases
- // 1. CLR initialization at begining of EEStartup, or
+ // 1. CLR initialization at beginning of EEStartup, or
// 2. Sometimes, when hosted by ASP.NET, the hosting process may initialize ThreadPool
// before initializing CLR, thus require CPUGroupInfo to be initialized to determine
// if CPU group support should/could be enabled.
if ((m_LCG_JumpStubLookup > 0) && ((m_normal_JumpStubBlockFullCount % 5) == 1))
{
- // Every 5 occurance of the above we also
+ // Every 5 occurrence of the above we also
// Log "LCG JumpStubBlock status" along with the four counter values
STRESS_LOG4(LF_JIT, LL_INFO1000, "LCG JumpStubBlock status - (%u, %u, %u, %u)\n",
m_LCG_JumpStubLookup, m_LCG_JumpStubUnique,
if (SUCCEEDED(hr))
{
- // Reset the stream to the begining
+ // Reset the stream to the beginning
LARGE_INTEGER li;
LISet32(li, 0);
ULARGE_INTEGER li2;
}
else
{
- // Reset the stream to the begining
+ // Reset the stream to the beginning
LARGE_INTEGER li;
LISet32(li, 0);
ULARGE_INTEGER li2;
}
else
{
- // Reset the stream to the begining
+ // Reset the stream to the beginning
LISet32(li, 0);
m_pStream->Seek(li, STREAM_SEEK_SET, &li2);
FCIMPLEND
/*================================CollectionCount=================================
-**Action: Returns the number of collections for this generation since the begining of the life of the process
+**Action: Returns the number of collections for this generation since the beginning of the life of the process
**Returns: The collection count.
**Arguments: args->generation -- The generation
**Exceptions: Argument exception if args->generation is < 0 or > GetMaxGeneration();
/****************************************************************************/
/****************************************************************************/
-/* Begining of helper functions */
+/* beginning of helper functions */
/****************************************************************************/
/****************************************************************************/
#endif
bool didGCPoll; // GC poll was done
bool notNeeded; // GC poll not needed
- unsigned __int64 startTicks; // tick count at begining of FCall
+ unsigned __int64 startTicks; // tick count at beginning of FCall
};
// FC_COMMON_PROLOG is used for both FCalls and HCalls
// TransitionFrames for exceptions
//-----------------------------------------------------------------------
-// The define USE_FEF controls how this class is used. Look for occurances
+// The define USE_FEF controls how this class is used. Look for occurrences
// of USE_FEF.
class FaultingExceptionFrame : public Frame
if (stompWBCompleteActions & SWB_EE_RESTART)
{
assert(!args->is_runtime_suspended &&
- "if runtime was suspended in patching routines then it was in running state at begining");
+ "if runtime was suspended in patching routines then it was in running state at beginning");
ThreadSuspend::RestartEE(FALSE, TRUE);
}
return; // unlike other branches we have already done cleanup so bailing out here
if (stompWBCompleteActions & SWB_EE_RESTART)
{
assert(!args->is_runtime_suspended &&
- "if runtime was suspended in patching routines then it was in running state at begining");
+ "if runtime was suspended in patching routines then it was in running state at beginning");
ThreadSuspend::RestartEE(FALSE, TRUE);
}
}
private:
ThreadLocalIBCInfo* m_pInfo;
bool m_fDisabled; // true if this holder actually disable the logging
- // false when this is a nested occurance and logging was already disabled
+ // false when this is a nested occurrence and logging was already disabled
};
//
LogInterop(logStr);
if (hr != S_OK)
{
- // Reset the stream to the begining
+ // Reset the stream to the beginning
LARGE_INTEGER li;
LISet32(li, 0);
ULARGE_INTEGER li2;
return(GetMethodTable()->IsMultiDimArray());
}
- // Get pointer to the begining of the bounds (counts for each dim)
+ // Get pointer to the beginning of the bounds (counts for each dim)
// Works for any array type
PTR_INT32 GetBoundsPtr() const {
WRAPPER_NO_CONTRACT;
if ((pParam->pData->infoFlags & COR_PRF_SNAPSHOT_X86_OPTIMIZED) != 0)
{
#ifndef _TARGET_X86_
- // If check in the begining of DoStackSnapshot (to return E_INVALIDARG) should
+ // If check in the beginning of DoStackSnapshot (to return E_INVALIDARG) should
// make this unreachable
_ASSERTE(!"COR_PRF_SNAPSHOT_X86_OPTIMIZED on non-X86 should be unreachable!");
#else
virtual void ResetState() = 0;
virtual BOOL IsRequestPending() = 0;
- //This functions marks the begining of requests queued for the domain.
+ //This functions marks the beginning of requests queued for the domain.
//It needs to notify the scheduler of work-arrival among other things.
virtual void SetAppDomainRequestsActive() = 0;
}
pZapWriter->Write(&directory, sizeof(IMAGE_RESOURCE_DIRECTORY));
- // Offsets are based from the begining of the resources blob (see PE format documentation)
+ // Offsets are based from the beginning of the resources blob (see PE format documentation)
DWORD dataEntryRVA = this->GetRVA() - m_pWin32ResourceSection->GetRVA()
+ sizeof(IMAGE_RESOURCE_DIRECTORY) +
(DWORD)m_entries.size() * sizeof(IMAGE_RESOURCE_DIRECTORY_ENTRY);
if (entry.m_nameOrIdIsString)
{
- // Offsets are based from the begining of the resources blob (see PE format documentation)
+ // Offsets are based from the beginning of the resources blob (see PE format documentation)
dirEntry.NameOffset = ((ZapWin32ResourceString*)(entry.m_pNameOrId))->GetRVA() - m_pWin32ResourceSection->GetRVA();
dirEntry.NameIsString = true;
}
if (entry.m_dataIsSubDirectory)
{
- // Offsets are based from the begining of the resources blob (see PE format documentation)
+ // Offsets are based from the beginning of the resources blob (see PE format documentation)
dirEntry.OffsetToDirectory = entry.m_pDataOrSubDirectory->GetRVA() - m_pWin32ResourceSection->GetRVA();
dirEntry.DataIsDirectory = true;
}
/// held in compress-row format. If the size of the matrix
/// in MxN with nz nonzeros, then the val[] is the nz nonzeros,
/// with its ith entry in column col[i]. The integer vector row[]
- /// is of size M+1 and row[i] points to the begining of the
+ /// is of size M+1 and row[i] points to the beginning of the
/// ith row in col[].
public static void matmult(double[] y, double[] val, int[] row, int[] col, double[] x, int NUM_ITERATIONS)
{
// initialize square sparse matrix
//
// for this test, we create a sparse matrix wit M/nz nonzeros
- // per row, with spaced-out evenly between the begining of the
+ // per row, with spaced-out evenly between the beginning of the
// row to the main diagonal. Thus, the resulting pattern looks
// like
// +-----------------+
' arguments. The value is returned. The function
' Raises an expection if params are invalid. This function
' calls FV and PMT. It calculates value of annuity (FV) at the
- ' begining of period for which IPMT is desired. Since interest
+ ' beginning of period for which IPMT is desired. Since interest
' rate is constant FV*rate would give IPMT.
'
' if type = 1 and per = 1 then IPMT = 0.
// that applies to us in it's LockChidlren. We dont need to go further up once we find a section record
// as it has the lock mode of all it's parents accumulated
//
- // There is one huge trick though - Location config records are different ( see begining of the func for what a location config record is )
+ // There is one huge trick though - Location config records are different ( see beginning of the func for what a location config record is )
// A location config record is not locked if the config level of the web.config file in which it lives is not locked.
// I.e. when we are looking for the effective value for a location config we have two cases
// a) There is a section record in our immediate parent ( remember our immediate parent is the config file in which we /as a location tag/ are defined )
Debug.Assert(canColumn != null && canColumn.expr != null, "BuildLinearExpression : Must be a matched candidate");
canColumn.flag = true;
}
- //this is invalid assert, assumption was that all equals operator exists at the begining of candidateColumns
+ //this is invalid assert, assumption was that all equals operator exists at the beginning of candidateColumns
// but with QFE 1704, this assumption is not true anymore
// Debug.Assert(matchedCandidates==1 || candidateColumns[matchedCandidates-1].equalsOperator, "BuildLinearExpression : Invalid matched candidates");
int lenCanColumns = _candidateColumns.Length;
Assert.Equal("Column5", dc.ColumnName);
Assert.Equal(5, dt.Columns.Count);
- //----------------------------- check Add/Remove from begining --------------------
+ //----------------------------- check Add/Remove from beginning --------------------
dt = InitTable();
dt.Columns.Remove(dt.Columns[0]);
dt.Columns.Remove(dt.Columns[0]);
dt.Columns.Remove(dt.Columns[0]);
- // check column 4 - remove - from begining
+ // check column 4 - remove - from beginning
Assert.Equal("Column4", dt.Columns[0].ColumnName);
- // check column 5 - remove - from begining
+ // check column 5 - remove - from beginning
Assert.Equal("Column5", dt.Columns[1].ColumnName);
Assert.Equal(2, dt.Columns.Count);
dt.Columns.Add();
dt.Columns.Add();
- // check column 0 - Add new - from begining
+ // check column 0 - Add new - from beginning
Assert.Equal("Column4", dt.Columns[0].ColumnName);
- // check column 1 - Add new - from begining
+ // check column 1 - Add new - from beginning
Assert.Equal("Column5", dt.Columns[1].ColumnName);
- // check column 2 - Add new - from begining
+ // check column 2 - Add new - from beginning
Assert.Equal("Column6", dt.Columns[2].ColumnName);
- // check column 3 - Add new - from begining
+ // check column 3 - Add new - from beginning
Assert.Equal("Column7", dt.Columns[3].ColumnName);
- // check column 4 - Add new - from begining
+ // check column 4 - Add new - from beginning
Assert.Equal("Column8", dt.Columns[4].ColumnName);
- // check column 5 - Add new - from begining
+ // check column 5 - Add new - from beginning
Assert.Equal("Column9", dt.Columns[5].ColumnName);
//----------------------------- check Add/Remove from middle --------------------
Short names make `IsEnabled()` faster.
* DO - use activities (see [Activity Users Guide](ActivityUserGuide.md)) for events that are
- marking the begining and end of an interval of time. The key value of Activities is that they
+ marking the beginning and end of an interval of time. The key value of Activities is that they
indicate that they represent a DURATION, and they also track what 'caused' them (and thus
logging systems can stitch together a 'causality graph').
// We shoudl always get the unconditional callback at the start and end of the trace.
Assert.True(4 <= evts.Count, $"FAILURE EventCounter Multi-event: 4 <= {evts.Count} ticks: {num100msecTimerTicks} thread: {Thread.CurrentThread.ManagedThreadId}");
- // We expect the timer to have gone off at least twice, plus the explicit poll at the begining and end.
+ // We expect the timer to have gone off at least twice, plus the explicit poll at the beginning and end.
// Each one fires two events (one for requests, one for errors). so that is (2 + 2)*2 = 8
// We expect about 7 timer requests, but we don't get picky about the exact count
// Putting in a generous buffer, we double 7 to say we don't expect more than 14 timer fires
// Step 2 - Remove fragment identifier from the package URI, if it is present
// Since '#" is an excluded character in Uri syntax, it can only occur as the
// fragment identifier, in all other places it should be escaped.
- // Hence we can safely use IndexOf to find the begining of the fragment.
+ // Hence we can safely use IndexOf to find the beginning of the fragment.
string absolutePackageUri = packageUri.GetComponents(UriComponents.AbsoluteUri, UriFormat.UriEscaped);
if (!string.IsNullOrEmpty(packageUri.Fragment))
// Step 4 - Replace all '/' with ',' in the resulting string
absolutePackageUri = absolutePackageUri.Replace('/', ',');
- // Step 5 - Append pack:// at the begining and a '/' at the end of the pack uri obtained so far
+ // Step 5 - Append pack:// at the beginning and a '/' at the end of the pack uri obtained so far
absolutePackageUri = string.Concat(PackUriHelper.UriSchemePack, Uri.SchemeDelimiter, absolutePackageUri);
Uri packUri = new Uri(absolutePackageUri);
private void BufferData(SerialPort com1, SerialPort com2, byte[] bytesToWrite)
{
- com2.Write(bytesToWrite, 0, 1); // Write one byte at the begining because we are going to read this to buffer the rest of the data
+ com2.Write(bytesToWrite, 0, 1); // Write one byte at the beginning because we are going to read this to buffer the rest of the data
com2.Write(bytesToWrite, 0, bytesToWrite.Length);
TCSupport.WaitForReadBufferToLoad(com1, bytesToWrite.Length);
private void BufferData(SerialPort com1, SerialPort com2, byte[] bytesToWrite)
{
- com2.Write(bytesToWrite, 0, 1); // Write one byte at the begining because we are going to read this to buffer the rest of the data
+ com2.Write(bytesToWrite, 0, 1); // Write one byte at the beginning because we are going to read this to buffer the rest of the data
com2.Write(bytesToWrite, 0, bytesToWrite.Length);
TCSupport.WaitForReadBufferToLoad(com1, bytesToWrite.Length);
private void BufferData(SerialPort com1, SerialPort com2, byte[] bytesToWrite)
{
- com2.Write(bytesToWrite, 0, 1); // Write one byte at the begining because we are going to read this to buffer the rest of the data
+ com2.Write(bytesToWrite, 0, 1); // Write one byte at the beginning because we are going to read this to buffer the rest of the data
com2.Write(bytesToWrite, 0, bytesToWrite.Length);
TCSupport.WaitForReadBufferToLoad(com1, bytesToWrite.Length);
byte[] bytesToWrite = com1.Encoding.GetBytes(charsToWrite);
com2.Write(bytesToWrite, 0, 1);
- // Write one byte at the begining because we are going to read this to buffer the rest of the data
+ // Write one byte at the beginning because we are going to read this to buffer the rest of the data
com2.Write(bytesToWrite, 0, bytesToWrite.Length);
TCSupport.WaitForReadBufferToLoad(com1, bytesToWrite.Length + 1);
private void BufferData(SerialPort com1, SerialPort com2, byte[] bytesToWrite)
{
- com2.Write(bytesToWrite, 0, 1); // Write one byte at the begining because we are going to read this to buffer the rest of the data
+ com2.Write(bytesToWrite, 0, 1); // Write one byte at the beginning because we are going to read this to buffer the rest of the data
com2.Write(bytesToWrite, 0, bytesToWrite.Length);
while (com1.BytesToRead < bytesToWrite.Length)
char c = TCSupport.GenerateRandomCharNonSurrogate();
byte[] bytesForSingleChar = com1.Encoding.GetBytes(new char[] { c }, 0, 1);
- com2.Write(bytesForSingleChar, 0, bytesForSingleChar.Length); // Write one byte at the begining because we are going to read this to buffer the rest of the data
+ com2.Write(bytesForSingleChar, 0, bytesForSingleChar.Length); // Write one byte at the beginning because we are going to read this to buffer the rest of the data
com2.Write(bytesToWrite, 0, bytesToWrite.Length);
TCSupport.WaitForReadBufferToLoad(com1, bytesToWrite.Length);
[Fact]
public void NonIndexerParameterizedDirectAccess()
{
- // If a paramterized property isn't the type's indexer, we should be allowed to use the
+ // If a parameterized property isn't the type's indexer, we should be allowed to use the
// getter or setter directly.
dynamic d = GetObjectWithNonIndexerParameterProperty(true, true);
d.set_ItemProp(2, 19);
}
[Fact]
- public void NonIndexerParamterizedGetterAndSetterIndexAccess()
+ public void NonIndexerParameterizedGetterAndSetterIndexAccess()
{
dynamic d = GetObjectWithNonIndexerParameterProperty(true, true);
RuntimeBinderException ex = Assert.Throws<RuntimeBinderException>(() => d.ItemProp[2] = 3);
}
[Fact]
- public void NonIndexerParamterizedGetterOnlyIndexAccess()
+ public void NonIndexerParameterizedGetterOnlyIndexAccess()
{
dynamic d = GetObjectWithNonIndexerParameterProperty(true, false);
int dump;
}
[Fact]
- public void NonIndexerParamterizedSetterOnlyIndexAccess()
+ public void NonIndexerParameterizedSetterOnlyIndexAccess()
{
dynamic d = GetObjectWithNonIndexerParameterProperty(false, true);
RuntimeBinderException ex = Assert.Throws<RuntimeBinderException>(() => d.ItemProp[2] = 9);
strClass = OriginalClassName;
}
- // Check if the name of the class starts with a charachter. If not add "C" to the begining of the name
+ // Check if the name of the class starts with a charachter. If not add "C" to the beginning of the name
if (char.IsLetter(strClass[0]) == false)
{
strClass = "C" + strClass;
*/
/// <summary>
- /// Adds comments at the begining of the class defination
+ /// Adds comments at the beginning of the class defination
/// </summary>
private void AddClassComments(CodeTypeDeclaration cc)
{
/// Internal function used to create code to convert DateTime or ManagementPath to String
/// convert a expression. Used in adding code for Property Set for DateTime and Reference properties
/// </summary>
- private CodeExpression ConvertPropertyToString(string strType, CodeExpression beginingExpression)
+ private CodeExpression ConvertPropertyToString(string strType, CodeExpression beginningExpression)
{
switch (strType)
{
case "System.DateTime":
CodeMethodInvokeExpression cmie1 = new CodeMethodInvokeExpression();
- cmie1.Parameters.Add(new CodeCastExpression(new CodeTypeReference("System.DateTime"), beginingExpression));
+ cmie1.Parameters.Add(new CodeCastExpression(new CodeTypeReference("System.DateTime"), beginningExpression));
cmie1.Method.MethodName = PrivateNamesUsed["ToDMTFDateTimeMethod"].ToString();
return cmie1;
case "System.TimeSpan":
CodeMethodInvokeExpression cmie2 = new CodeMethodInvokeExpression();
- cmie2.Parameters.Add(new CodeCastExpression(new CodeTypeReference("System.TimeSpan"), beginingExpression));
+ cmie2.Parameters.Add(new CodeCastExpression(new CodeTypeReference("System.TimeSpan"), beginningExpression));
cmie2.Method.MethodName = PrivateNamesUsed["ToDMTFTimeIntervalMethod"].ToString();
return cmie2;
case "System.Management.ManagementPath":
return new CodePropertyReferenceExpression(new CodeCastExpression(
new CodeTypeReference(PublicNamesUsed["PathClass"].ToString()),
- beginingExpression), PublicNamesUsed["PathProperty"].ToString());
+ beginningExpression), PublicNamesUsed["PathProperty"].ToString());
}
return false;
}
- source = source.Slice(1); // skip begining
+ source = source.Slice(1); // skip beginning
}
if (!TryParseUInt32X(source, out uint i1, out int justConsumed))
int nTokenType = (int)tokenType;
int nCurrentTokenTypeInHash = (int)value.tokenType;
- // The folowing is the fix for the issue of throwing FormatException when "mar" is passed in string of the short date format dd/MMM/yyyy for es-MX
+ // The following is the fix for the issue of throwing FormatException when "mar" is passed in string of the short date format dd/MMM/yyyy for es-MX
if (((nCurrentTokenTypeInHash & (int)TokenType.RegularTokenMask) == 0) && ((nTokenType & (int)TokenType.RegularTokenMask) != 0) ||
((nCurrentTokenTypeInHash & (int)TokenType.SeparatorTokenMask) == 0) && ((nTokenType & (int)TokenType.SeparatorTokenMask) != 0))
{
//
// The string to be parsed. Use a __DTString wrapper so that we can trace the index which
- // indicates the begining of next token.
+ // indicates the beginning of next token.
//
__DTString str = new __DTString(s, dtfi);
}
else if (replacementsCount >= replacements.Length)
{
- Array.Resize(ref replacements, replacements.Length * 3 / 2 + 4); // Grow by ~1.5x, but more in the begining
+ Array.Resize(ref replacements, replacements.Length * 3 / 2 + 4); // Grow by ~1.5x, but more in the beginning
}
replacements[replacementsCount++] = indexInChunk;
indexInChunk += oldValue.Length;
//
// This specifies the Julian day, with n between 0 and 365. February 29 is counted in leap years.
//
- // n would be a relative number from the begining of the year. which should handle if the
+ // n would be a relative number from the beginning of the year. which should handle if the
// the year is a leap year or not.
//
// In leap year, n would be counted as:
/*
* Use this method to load the above data from disk
* Comment the above code when using this method.
- * Also the arguments for the folowing tests: XAttributeSuccessValidate
+ * Also the arguments for the following tests: XAttributeSuccessValidate
* XAttributeFailValidate, XAttributeThrowExceptionValidate, XElementSuccessValidate
* XElementFailValidate,XElementThrowExceptionValidate, XAttributeGetSchemaInfo
* XElementGetSchemaInfo may need to be changed.
// In this situation the compiler returned for example Line 10, Column 0.
// This means that the compiler knows the line of the error, but it doesn't
// know (or support) the column part of the location.
- // Since we don't allow column 0 (as it's invalid), let's turn it into 1 (the begining of the line)
+ // Since we don't allow column 0 (as it's invalid), let's turn it into 1 (the beginning of the line)
errorColumn = 1;
}
}
/*
* If a method occupies more than one place in the vtable, and it is
- * overriden, then change the other occurances too.
+ * overriden, then change the other occurrences too.
*/
if (override_map) {
MonoMethod *cm;
else if (!strcmp (name, "badrt"))
validity = TEST_TYPE_BADRT;
else {
- printf ("Expected either 'valid', 'invalid' or 'badtr' but got '%s' at the begining of a test entry at line %d\n", name, scanner_get_line (scanner));
+ printf ("Expected either 'valid', 'invalid' or 'badtr' but got '%s' at the beginning of a test entry at line %d\n", name, scanner_get_line (scanner));
exit (INVALID_VALIDITY_TEST);
}