共用方式為


Field.ToGenericString Method

Definition

Returns a string describing this Field, including its generic type.

[Android.Runtime.Register("toGenericString", "()Ljava/lang/String;", "")]
public string ToGenericString ();
[<Android.Runtime.Register("toGenericString", "()Ljava/lang/String;", "")>]
member this.ToGenericString : unit -> string

Returns

a string describing this Field, including its generic type

Attributes

Remarks

Returns a string describing this Field, including its generic type. The format is the access modifiers for the field, if any, followed by the generic field type, followed by a space, followed by the fully-qualified name of the class declaring the field, followed by a period, followed by the name of the field.

The modifiers are placed in canonical order as specified by "The Java Language Specification". This is public, protected or private first, and then other modifiers in the following order: static, final, transient, volatile.

Added in 1.5.

Java documentation for java.lang.reflect.Field.toGenericString().

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to