function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Alpesh Patel 16Alpesh Patel 16 

How to get SObject's field's DESCRIPTION in apex class?

I have a apex class and trigger. I want to display Sobject's field name,Inline help Text and Description in visualforce page.

For example,
Sobject is "XYZ__c"
Fields are "Name__c" and "Address__c"

Then my visualforce page should display 

Name           Description                 Inlinehelptext
Name__c      This is the Name.          In this field user have to enter its name.
Address__c  This is the Address.       In this field user enters his address

I can get Name and Inlinehelptext using "Sobject__c.fieldapiname__c.getdescribe().getinlinehelptext()" but how to get description?. 

Help Me,