Class IntExtensions
Inheritance
System.Object
      Namespace: Umbraco.Extensions
Assembly: Umbraco.Core.dll
Syntax
public static class IntExtensionsMethods
View SourceTimes(Int32, Action<Int32>)
Does something 'x' amount of times.
Declaration
public static void Times(this int n, Action<int> action)Parameters
| Type | Name | Description | 
|---|---|---|
| System.Int32 | n | Number of times to execute the action. | 
| Action<System.Int32> | action | The action to execute. | 
ToGuid(Int32)
Creates a Guid based on an integer value.
Declaration
public static Guid ToGuid(this int value)Parameters
| Type | Name | Description | 
|---|---|---|
| System.Int32 | value | The System.Int32 value to convert. | 
Returns
| Type | Description | 
|---|---|
| Guid | The converted  | 
TryParseFromGuid(Guid, out Nullable<Int32>)
Restores a GUID previously created from an integer value using ToGuid(Int32).
Declaration
public static bool TryParseFromGuid(Guid value, out int? result)Parameters
| Type | Name | Description | 
|---|---|---|
| Guid | value | The  | 
| System.Nullable<System.Int32> | result | The converted System.Int32. | 
Returns
| Type | Description | 
|---|---|
| System.Boolean | True if the System.Int32 value could be created, otherwise false. |