AssetId Struct 
              
              
              Namespace: Stride.Core.Assets
              Assembly: Stride.Core.Serialization.dll
              
              
              
              
              
              
              
              
              
                [DataContract("AssetId")]
[DataSerializer(typeof(AssetId.Serializer))]
public struct AssetId : IComparable<AssetId>, IEquatable<AssetId>
               
              
              
              
              
              
                  
              
                     
              
                
                  |
                  Improve this Doc
                
                
                  View Source
                
              
              
                Constructors
              
                
              
              
              
              
              
              AssetId(Guid)
              
              
              
              
              
                public AssetId(Guid guid)
               
              
              Parameters
              
                
                  
                    | Type | 
                    Name | 
                    Description | 
                  
                
                
                  
                    | System.Guid | 
                    guid | 
                     | 
                  
                
              
              
              
              
              
              
              AssetId(String)
              
              
              
              
              
                public AssetId(string guid)
               
              
              Parameters
              
                
                  
                    | Type | 
                    Name | 
                    Description | 
                  
                
                
                  
                    | System.String | 
                    guid | 
                     | 
                  
                
              
                     
              
                
                  |
                  Improve this Doc
                
                
                  View Source
                
              
              
                Fields
              
                
              
              
              
              
              Empty
              
              
              
              
              
                public static readonly AssetId Empty
               
              
              Field Value
              
                     
              
                
                  |
                  Improve this Doc
                
                
                  View Source
                
              
              
                Methods
              
                
              
              
              
              
              
              CompareTo(AssetId)
              
              
              
              
              
                public int CompareTo(AssetId other)
               
              
              Parameters
              
                
                  
                    | Type | 
                    Name | 
                    Description | 
                  
                
                
                  
                    | AssetId | 
                    other | 
                     | 
                  
                
              
              Returns
              
                
                  
                    | Type | 
                    Description | 
                  
                
                
                  
                    | System.Int32 | 
                     | 
                  
                
              
              
              
              
              
              
              Equals(AssetId)
              
              
              
              
              
                public bool Equals(AssetId other)
               
              
              Parameters
              
                
                  
                    | Type | 
                    Name | 
                    Description | 
                  
                
                
                  
                    | AssetId | 
                    other | 
                     | 
                  
                
              
              Returns
              
                
                  
                    | Type | 
                    Description | 
                  
                
                
                  
                    | System.Boolean | 
                     | 
                  
                
              
              
              
              
              
              
              Equals(Object)
              
              
              
              
              
                public override bool Equals(object obj)
               
              
              Parameters
              
                
                  
                    | Type | 
                    Name | 
                    Description | 
                  
                
                
                  
                    | System.Object | 
                    obj | 
                     | 
                  
                
              
              Returns
              
                
                  
                    | Type | 
                    Description | 
                  
                
                
                  
                    | System.Boolean | 
                     | 
                  
                
              
              Overrides
              System.ValueType.Equals(System.Object)
              
              
              
              
              
              GetHashCode()
              
              
              
              
              
                public override int GetHashCode()
               
              
              Returns
              
                
                  
                    | Type | 
                    Description | 
                  
                
                
                  
                    | System.Int32 | 
                     | 
                  
                
              
              Overrides
              System.ValueType.GetHashCode()
              
              
              
              
              
              New()
              
              
              
              
              
                public static AssetId New()
               
              
              Returns
              
              
              
              
              
              
              Parse(String)
              
              
              
              
              
                public static AssetId Parse(string input)
               
              
              Parameters
              
                
                  
                    | Type | 
                    Name | 
                    Description | 
                  
                
                
                  
                    | System.String | 
                    input | 
                     | 
                  
                
              
              Returns
              
              
              
              
              
              
              ToString()
              
              
              
              
              
                public override string ToString()
               
              
              Returns
              
                
                  
                    | Type | 
                    Description | 
                  
                
                
                  
                    | System.String | 
                     | 
                  
                
              
              Overrides
              System.ValueType.ToString()
              
              
              
              
              
              TryParse(String, out AssetId)
              
              
              
              
              
                public static bool TryParse(string input, out AssetId result)
               
              
              Parameters
              
                
                  
                    | Type | 
                    Name | 
                    Description | 
                  
                
                
                  
                    | System.String | 
                    input | 
                     | 
                  
                  
                    | AssetId | 
                    result | 
                     | 
                  
                
              
              Returns
              
                
                  
                    | Type | 
                    Description | 
                  
                
                
                  
                    | System.Boolean | 
                     | 
                  
                
              
                     
              
                
                  |
                  Improve this Doc
                
                
                  View Source
                
              
              
                Operators
              
                
              
              
              
              
              
              Equality(AssetId, AssetId)
              
              
              
              
              
                public static bool operator ==(AssetId left, AssetId right)
               
              
              Parameters
              
              Returns
              
                
                  
                    | Type | 
                    Description | 
                  
                
                
                  
                    | System.Boolean | 
                    The result of the operator. 
 | 
                  
                
              
              
              
              
              
              
              Explicit(AssetId to Guid)
              
              
              
              
              
                public static explicit operator Guid(AssetId id)
               
              
              Parameters
              
              Returns
              
                
                  
                    | Type | 
                    Description | 
                  
                
                
                  
                    | System.Guid | 
                     | 
                  
                
              
              
              
              
              
              
              Explicit(Guid to AssetId)
              
              
              
              
              
                public static explicit operator AssetId(Guid guid)
               
              
              Parameters
              
                
                  
                    | Type | 
                    Name | 
                    Description | 
                  
                
                
                  
                    | System.Guid | 
                    guid | 
                     | 
                  
                
              
              Returns
              
              
              
              
              
              
              Inequality(AssetId, AssetId)
              
              
              
              
              
                public static bool operator !=(AssetId left, AssetId right)
               
              
              Parameters
              
              Returns
              
                
                  
                    | Type | 
                    Description | 
                  
                
                
                  
                    | System.Boolean | 
                    The result of the operator. 
 | 
                  
                
              
              
              
 
              
               
              
              
              
              
              Extension Methods