Language

GeneratedAttribute Class

Definition

Marks source code as generated and identifies the code generator.

[Android.Runtime.Annotation("javax.annotation.processing.Generated")]
public class GeneratedAttribute : Attribute
[<Android.Runtime.Annotation("javax.annotation.processing.Generated")>]
type GeneratedAttribute = class
    inherit Attribute
Inheritance
GeneratedAttribute
Attributes

Remarks

Apply this attribute to generated source code to distinguish it from user-written code. Use Value to identify the generator and, optionally, record when the source was generated and include generator-specific comments.

Constructors

Name Description
GeneratedAttribute()

Initializes a new instance of the GeneratedAttribute class.

Properties

Name Description
Comments

Gets or sets comments supplied by the code generator.

Date

Gets or sets the date and time when the source was generated.

Value

Gets or sets the names of the code generators that produced the source.

Applies to