User Tools

Site Tools


sample_code:start

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
sample_code:start [2018/12/30 13:55]
182.1.60.113 [Sample DroidScript Code]
sample_code:start [2022/07/24 16:49] (current)
al4he6
Line 1: Line 1:
-<Type Name="StackOverflowException" FullName="System.StackOverflowException"> +======Sample DroidScript Code======  
-  <TypeSignature Language="C#" Value="public sealed class StackOverflowException : SystemException" /> +
-  <TypeSignature Language="ILAsm" Value=".class public auto ansi serializable sealed beforefieldinit StackOverflowException extends System.SystemException" /> +
-  <TypeSignature Language="DocId" Value="T:System.StackOverflowException" /> +
-  <TypeSignature Language="VB.NET" Value="Public NotInheritable Class StackOverflowException&#xA;Inherits SystemException" /> +
-  <TypeSignature Language="C++ CLI" Value="public ref class StackOverflowException sealed : SystemException" /> +
-  <TypeSignature Language="F#" Value="type StackOverflowException = class&#xA;    inherit SystemException" /> +
-  <AssemblyInfo> +
-    <AssemblyName>mscorlib</AssemblyName> +
-    <AssemblyVersion>1.0.5000.0</AssemblyVersion> +
-    <AssemblyVersion>2.0.0.0</AssemblyVersion> +
-    <AssemblyVersion>2.0.5.0</AssemblyVersion> +
-    <AssemblyVersion>4.0.0.0</AssemblyVersion> +
-  </AssemblyInfo> +
-  <AssemblyInfo> +
-    <AssemblyName>netstandard</AssemblyName> +
-    <AssemblyVersion>2.0.0.0</AssemblyVersion> +
-  </AssemblyInfo> +
-  <AssemblyInfo> +
-    <AssemblyName>System.Runtime</AssemblyName> +
-    <AssemblyVersion>4.2.0.0</AssemblyVersion> +
-    <AssemblyVersion>4.2.1.0</AssemblyVersion> +
-  </AssemblyInfo> +
-  <Base> +
-    <BaseTypeName>System.SystemException</BaseTypeName> +
-  </Base> +
-  <Interfaces /> +
-  <Attributes> +
-    <Attribute FrameworkAlternate="netframework-2.0;netframework-3.0;netframework-3.5;netframework-4.0;netframework-4.5;netframework-4.5.1;netframework-4.5.2;netframework-4.6;netframework-4.6.1;netframework-4.6.2;netframework-4.7;netframework-4.7.1;netframework-4.7.2;xamarinandroid-7.1;xamarinios-10.8;xamarinmac-3.0;netframework-4.8"> +
-      <AttributeName>System.Runtime.InteropServices.ComVisible(true)</AttributeName> +
-    </Attribute> +
-    <Attribute FrameworkAlternate="netframework-1.1;netframework-2.0;netframework-3.0;netframework-3.5;netframework-4.0;netframework-4.5;netframework-4.5.1;netframework-4.5.2;netframework-4.6;netframework-4.6.1;netframework-4.6.2;netframework-4.7;netframework-4.7.1;netframework-4.7.2;netframework-4.8;xamarinandroid-7.1;xamarinios-10.8;xamarinmac-3.0"> +
-      <AttributeName>System.Serializable</AttributeName> +
-    </Attribute> +
-  </Attributes> +
-  <Docs> +
-    <summary>The exception that is thrown when the execution stack overflows because it contains too many nested method calls. This class cannot be inherited.</summary> +
-    <remarks> +
-      <format type="text/markdown"><![CDATA[   +
-   +
-## Remarks   +
- <xref:System.StackOverflowException> is thrown for execution stack overflow errors, typically in case of a very deep or unbounded recursion.   +
-   +
- <xref:System.StackOverflowException> uses the HRESULT COR_E_STACKOVERFLOW, which has the value 0x800703E9. The <xref:System.Reflection.Emit.OpCodes.Localloc> intermediate language (IL) instruction throws <xref:System.StackOverflowException>. For a list of initial property values for a <xref:System.StackOverflowException> object, see the <xref:System.StackOverflowException.%23ctor%2A> constructors.   +
-   +
-## Version Considerations   +
- In the .NET Framework 1.0 and 1.1, you could catch a <xref:System.StackOverflowException> object (for example, to recover from unbounded recursion). Starting with the .NET Framework 2.0, you can't catch a <xref:System.StackOverflowException> object with a `try`/`catch` block, and the corresponding process is terminated by default. Consequently, you should write your code to detect and prevent a stack overflow. For example, if your app depends on recursion, use a counter or a state condition to terminate the recursive loop. The following example uses a counter to ensure that the number of recursive calls to the `Execute` method do not exceed a maximum defined by the MAX_RECURSIVE_CALLS constant.   +
-   +
- [!code-csharp[System.StackOverflowException.Class#1](~/samples/snippets/csharp/VS_Snippets_CLR_System/system.stackoverflowexception.class/cs/example1a.cs#1)] +
- [!code-vb[System.StackOverflowException.Class#1](~/samples/snippets/visualbasic/VS_Snippets_CLR_System/system.stackoverflowexception.class/vb/example1a.vb#1)]   +
-   +
-> [!NOTE] +
->  Applying the <xref:System.Runtime.ExceptionServices.HandleProcessCorruptedStateExceptionsAttribute> attribute to a method that throws a <xref:System.StackOverflowException> has no effect. You still cannot handle the exception from user code.   +
-   +
- If your app hosts the common language runtime (CLR), it can specify that the CLR should unload the application domain where the stack overflow exception occurs and let the corresponding process continue. For more information, see [ICLRPolicyManager Interface](~/docs/framework/unmanaged-api/hosting/iclrpolicymanager-interface.md).   +
-   +
- ]]></format> +
-    </remarks> +
-    <altmember cref="T:System.Exception" /> +
-    <related type="Article" href="~/docs/standard/exceptions/index.md">Handling and Throwing Exceptions</related> +
-  </Docs> +
-  <Members> +
-    <MemberGroup MemberName=".ctor"> +
-      <AssemblyInfo> +
-        <AssemblyName>mscorlib</AssemblyName> +
-        <AssemblyVersion>2.0.5.0</AssemblyVersion> +
-        <AssemblyVersion>4.0.0.0</AssemblyVersion> +
-      </AssemblyInfo> +
-      <Docs> +
-        <summary>Initializes a new instance of the <see cref="T:System.StackOverflowException" /> class.</summary> +
-      </Docs> +
-    </MemberGroup> +
-    <Member MemberName=".ctor"> +
-      <MemberSignature Language="C#" Value="public StackOverflowException ();" /> +
-      <MemberSignature Language="ILAsm" Value=".method public hidebysig specialname rtspecialname instance void .ctor() cil managed" /> +
-      <MemberSignature Language="DocId" Value="M:System.StackOverflowException.#ctor" /> +
-      <MemberSignature Language="VB.NET" Value="Public Sub New ()" /> +
-      <MemberSignature Language="C++ CLI" Value="public:&#xA; StackOverflowException();" /> +
-      <MemberType>Constructor</MemberType> +
-      <AssemblyInfo> +
-        <AssemblyName>mscorlib</AssemblyName> +
-        <AssemblyVersion>1.0.5000.0</AssemblyVersion> +
-        <AssemblyVersion>2.0.0.0</AssemblyVersion> +
-        <AssemblyVersion>2.0.5.0</AssemblyVersion> +
-        <AssemblyVersion>4.0.0.0</AssemblyVersion> +
-      </AssemblyInfo> +
-      <AssemblyInfo> +
-        <AssemblyName>netstandard</AssemblyName> +
-        <AssemblyVersion>2.0.0.0</AssemblyVersion> +
-      </AssemblyInfo> +
-      <AssemblyInfo> +
-        <AssemblyName>System.Runtime</AssemblyName> +
-        <AssemblyVersion>4.2.0.0</AssemblyVersion> +
-        <AssemblyVersion>4.2.1.0</AssemblyVersion> +
-      </AssemblyInfo> +
-      <Parameters /> +
-      <Docs> +
-        <summary>Initializes a new instance of the <see cref="T:System.StackOverflowException" /> class, setting the <see cref="P:System.Exception.Message" /> property of the new instance to a system-supplied message that describes the error, such as "The requested operation caused a stack overflow." This message takes into account the current system culture.</summary> +
-        <remarks> +
-          <format type="text/markdown"><![CDATA[   +
-   +
-## Remarks   +
- The following table shows the initial property values for an instance of <xref:System.StackOverflowException>  +
-   +
-|Property|Value|   +
-|--------------|-----------|   +
-|<xref:System.Exception.InnerException%2A>|`null`.|   +
-|<xref:System.Exception.Message%2A>|The localized error message string.|   +
-   +
- ]]></format> +
-        </remarks> +
-      </Docs> +
-    </Member> +
-    <Member MemberName=".ctor"> +
-      <MemberSignature Language="C#" Value="public StackOverflowException (string message);" /> +
-      <MemberSignature Language="ILAsm" Value=".method public hidebysig specialname rtspecialname instance void .ctor(string message) cil managed" /> +
-      <MemberSignature Language="DocId" Value="M:System.StackOverflowException.#ctor(System.String)" /> +
-      <MemberSignature Language="VB.NET" Value="Public Sub New (message As String)" /> +
-      <MemberSignature Language="C++ CLI" Value="public:&#xA; StackOverflowException(System::String ^ message);" /> +
-      <MemberSignature Language="F#" Value="new StackOverflowException : string -&gt; StackOverflowException" Usage="new System.StackOverflowException message" /> +
-      <MemberType>Constructor</MemberType> +
-      <AssemblyInfo> +
-        <AssemblyName>mscorlib</AssemblyName> +
-        <AssemblyVersion>1.0.5000.0</AssemblyVersion> +
-        <AssemblyVersion>2.0.0.0</AssemblyVersion> +
-        <AssemblyVersion>2.0.5.0</AssemblyVersion> +
-        <AssemblyVersion>4.0.0.0</AssemblyVersion> +
-      </AssemblyInfo> +
-      <AssemblyInfo> +
-        <AssemblyName>netstandard</AssemblyName> +
-        <AssemblyVersion>2.0.0.0</AssemblyVersion> +
-      </AssemblyInfo> +
-      <AssemblyInfo> +
-        <AssemblyName>System.Runtime</AssemblyName> +
-        <AssemblyVersion>4.2.0.0</AssemblyVersion> +
-        <AssemblyVersion>4.2.1.0</AssemblyVersion> +
-      </AssemblyInfo> +
-      <Parameters> +
-        <Parameter Name="message" Type="System.String" /> +
-      </Parameters> +
-      <Docs> +
-        <param name="message">A <see cref="T:System.String" /> that describes the error. The content of message is intended to be understood by humans. The caller of this constructor is required to ensure that this string has been localized for the current system culture.</param> +
-        <summary>Initializes a new instance of the <see cref="T:System.StackOverflowException" /> class with a specified error message.</summary> +
-        <remarks> +
-          <format type="text/markdown"><![CDATA[   +
-   +
-## Remarks   +
- The following table shows the initial property values for an instance of <xref:System.StackOverflowException>  +
-   +
-|Property|Value|   +
-|--------------|-----------|   +
-|<xref:System.Exception.InnerException%2A>|A null reference (`Nothing` in Visual Basic).|   +
-|<xref:System.Exception.Message%2A>|The error message string.|   +
-   +
- ]]></format> +
-        </remarks> +
-      </Docs> +
-    </Member> +
-    <Member MemberName=".ctor"> +
-      <MemberSignature Language="C#" Value="public StackOverflowException (string message, Exception innerException);" /> +
-      <MemberSignature Language="ILAsm" Value=".method public hidebysig specialname rtspecialname instance void .ctor(string message, class System.Exception innerException) cil managed" /> +
-      <MemberSignature Language="DocId" Value="M:System.StackOverflowException.#ctor(System.String,System.Exception)" /> +
-      <MemberSignature Language="VB.NET" Value="Public Sub New (message As String, innerException As Exception)" /> +
-      <MemberSignature Language="C++ CLI" Value="public:&#xA; StackOverflowException(System::String ^ message, Exception ^ innerException);" /> +
-      <MemberSignature Language="F#" Value="new StackOverflowException : string * Exception -&gt; StackOverflowException" Usage="new System.StackOverflowException (message, innerException)" /> +
-      <MemberType>Constructor</MemberType> +
-      <AssemblyInfo> +
-        <AssemblyName>mscorlib</AssemblyName> +
-        <AssemblyVersion>1.0.5000.0</AssemblyVersion> +
-        <AssemblyVersion>2.0.0.0</AssemblyVersion> +
-        <AssemblyVersion>2.0.5.0</AssemblyVersion> +
-        <AssemblyVersion>4.0.0.0</AssemblyVersion> +
-      </AssemblyInfo> +
-      <AssemblyInfo> +
-        <AssemblyName>netstandard</AssemblyName> +
-        <AssemblyVersion>2.0.0.0</AssemblyVersion> +
-      </AssemblyInfo> +
-      <AssemblyInfo> +
-        <AssemblyName>System.Runtime</AssemblyName> +
-        <AssemblyVersion>4.2.0.0</AssemblyVersion> +
-        <AssemblyVersion>4.2.1.0</AssemblyVersion> +
-      </AssemblyInfo> +
-      <Parameters> +
-        <Parameter Name="message" Type="System.String" /> +
-        <Parameter Name="innerException" Type="System.Exception" /> +
-      </Parameters> +
-      <Docs> +
-        <param name="message">The error message that explains the reason for the exception.</param> +
-        <param name="innerException">The exception that is the cause of the current exception. If the <paramref name="innerException" /> parameter is not a null reference (<see langword="Nothing" /> in Visual Basic), the current exception is raised in a <see langword="catch" /> block that handles the inner exception.</param> +
-        <summary>Initializes a new instance of the <see cref="T:System.StackOverflowException" /> class with a specified error message and a reference to the inner exception that is the cause of this exception.</summary> +
-        <remarks> +
-          <format type="text/markdown"><![CDATA[   +
-   +
-## Remarks   +
- An exception that is thrown as a direct result of a previous exception can include a reference to the previous exception in the <xref:System.Exception.InnerException%2A> property. The <xref:System.Exception.InnerException%2A> property returns the same value that is passed into the constructor, or a null reference (`Nothing` in Visual Basic) if the <xref:System.Exception.InnerException%2A> property does not supply the inner exception value to the constructor.   +
-   +
- The following table shows the initial property values for an instance of <xref:System.StackOverflowException>  +
-   +
-|Property|Value|   +
-|--------------|-----------|   +
-|<xref:System.Exception.InnerException%2A>|The inner exception reference.|   +
-|<xref:System.Exception.Message%2A>|The error message string.|   +
-   +
- ]]></format> +
-        </remarks> +
-        <altmember cref="T:System.Exception" /> +
-        <related type="Article" href="~/docs/standard/exceptions/index.md">Handling and Throwing Exceptions</related> +
-      </Docs> +
-    </Member> +
-  </Members> +
-</Type>+
 ====Sample programs==== ====Sample programs====
 [[Dice]]- This is a simple dice game. \\ [[Dice]]- This is a simple dice game. \\
Line 240: Line 31:
 [[sample_code:image_rotate|Image rotate]] - rotate x×y images using image.DrawImageMtx\\ [[sample_code:image_rotate|Image rotate]] - rotate x×y images using image.DrawImageMtx\\
 [[sample_code:layout_children|Layout Children]] - Functions to manipulate controls on a layout\\ [[sample_code:layout_children|Layout Children]] - Functions to manipulate controls on a layout\\
 +[[sample_code:list_of_entries|List of Entries]] - Show a list of entries (with add, update, delete, save, load)\\
 [[sample_code:listing_nxt_files|Listing files on NXT]] - Sample app\\ [[sample_code:listing_nxt_files|Listing files on NXT]] - Sample app\\
 [[sample_code:random_file_acces|Low Random File Acces]] - Sample and Infos from Dave Smart\\ [[sample_code:random_file_acces|Low Random File Acces]] - Sample and Infos from Dave Smart\\
 [[introspector|Method finder]] - Introspection lite tool for home use by Steve Garman\\ [[introspector|Method finder]] - Introspection lite tool for home use by Steve Garman\\
 [[pincode|Pincode]] - Excellent pincode entry facility with optional hidden input\\ [[pincode|Pincode]] - Excellent pincode entry facility with optional hidden input\\
 +[[passwordvault|Password Vault]] - Store your passwords (protected by FingerPrint scan and Master Password\\
 [[Sample_code:app_toback|Send App to Back]] - Sample how to send your App to the Background and restart it\\ [[Sample_code:app_toback|Send App to Back]] - Sample how to send your App to the Background and restart it\\
 [[sample_code:shake|Shake]] - Use accelerometer to detect device shaken\\ [[sample_code:shake|Shake]] - Use accelerometer to detect device shaken\\
sample_code/start.1546178108.txt.gz · Last modified: 2018/12/30 21:55 (external edit)