Hello. You did not inform the text to which this question is related, however, an example of dramatic irony is one in which the audience knows things that the characters do not know. This resource can be used in several different literary genres, but it is generally used in comedy and suspense, because it manages to create different atmospheres between character and audience.